From 3e8515bf36d9e02e912e326797329c069a56d3bd Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 27 Aug 2014 12:10:21 +0000 Subject: * lib/drb/drb.rb: use attr_reader instead of Module#attr. [Feature #10172][ruby-core:64582] * lib/irb/ruby-token.rb: ditto. * lib/net/telnet.rb: ditto. * lib/rdoc/ruby_token.rb: ditto. * lib/thwait.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/ruby_token.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/rdoc/ruby_token.rb') diff --git a/lib/rdoc/ruby_token.rb b/lib/rdoc/ruby_token.rb index 8010475b92..81d3eb0b25 100644 --- a/lib/rdoc/ruby_token.rb +++ b/lib/rdoc/ruby_token.rb @@ -38,9 +38,9 @@ module RDoc::RubyToken @text = text end - attr :seek - attr :line_no - attr :char_no + attr_reader :seek + attr_reader :line_no + attr_reader :char_no attr_accessor :text @@ -73,7 +73,7 @@ module RDoc::RubyToken @node = node end - attr :node + attr_reader :node def ==(other) self.class == other.class and @@ -101,7 +101,7 @@ module RDoc::RubyToken super(seek, line_no, char_no) @name = name end - attr :name + attr_reader :name def ==(other) self.class == other.class and @@ -192,7 +192,7 @@ module RDoc::RubyToken @text = nil end - attr :op + attr_reader :op def ==(other) self.class == other.class and @@ -217,7 +217,7 @@ module RDoc::RubyToken super(seek, line_no, char_no) @name = name end - attr :name + attr_reader :name def ==(other) self.class == other.class and -- cgit v1.2.3