aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/ruby_token.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/ruby_token.rb')
-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