aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-27 12:10:21 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-27 12:10:21 +0000
commit3e8515bf36d9e02e912e326797329c069a56d3bd (patch)
tree835b43d67cfa527be8a11ea50a1f6c129be0c2ea /lib/rdoc
parentef7b9bf382a8e6efa472e197b8b2f8dab48cba43 (diff)
downloadruby-3e8515bf36d9e02e912e326797329c069a56d3bd.tar.gz
* 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
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/ruby_token.rb14
1 files changed, 7 insertions, 7 deletions
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