[前][次][番号順一覧][スレッド一覧]

ruby-changes:43764

From: nobu <ko1@a...>
Date: Tue, 9 Aug 2016 10:42:54 +0900 (JST)
Subject: [ruby-changes:43764] nobu:r55838 (trunk): tcltklib/sample2.rb: use attr_accessor [ci skip]

nobu	2016-08-09 10:42:49 +0900 (Tue, 09 Aug 2016)

  New Revision: 55838

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55838

  Log:
    tcltklib/sample2.rb: use attr_accessor [ci skip]
    
    * ext/tk/sample/tcltklib/sample2.rb (Othello::BoardView::Square):
      use attr_accessor instead of attr with optional boolean
      argument.

  Modified files:
    trunk/ext/tk/sample/tcltklib/sample2.rb
Index: ext/tk/sample/tcltklib/sample2.rb
===================================================================
--- ext/tk/sample/tcltklib/sample2.rb	(revision 55837)
+++ ext/tk/sample/tcltklib/sample2.rb	(revision 55838)
@@ -191,7 +191,7 @@ class Othello https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/tcltklib/sample2.rb#L191
 
       class Square
 
-         attr :oval, TRUE
+         attr_accessor :oval
          attr :row
          attr :col
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]