Class: RDoc::RubyToken::TkOPASGN
Instance Attribute Summary (collapse)
-
- (Object) op
readonly
Returns the value of attribute op.
Attributes inherited from TkOp
Attributes inherited from Token
Instance Method Summary (collapse)
- - (Object) ==(other)
-
- (TkOPASGN) initialize(seek, line_no, char_no, op)
constructor
A new instance of TkOPASGN.
- - (Object) text
Methods inherited from TkOp
Methods inherited from Token
Constructor Details
- (TkOPASGN) initialize(seek, line_no, char_no, op)
A new instance of TkOPASGN
159 160 161 162 163 164 |
# File 'lib/rdoc/ruby_token.rb', line 159 def initialize(seek, line_no, char_no, op) super(seek, line_no, char_no) op = TkReading2Token[op][0] unless op.kind_of?(Symbol) @op = op @text = nil end |
Instance Attribute Details
- (Object) op (readonly)
Returns the value of attribute op
166 167 168 |
# File 'lib/rdoc/ruby_token.rb', line 166 def op @op end |
Instance Method Details
- (Object) ==(other)
168 169 170 171 172 173 |
# File 'lib/rdoc/ruby_token.rb', line 168 def ==(other) self.class == other.class and other.line_no == @line_no and other.char_no == @char_no and other.op == @op end |
- (Object) text
175 176 177 |
# File 'lib/rdoc/ruby_token.rb', line 175 def text @text ||= "#{TkToken2Reading[op]}=" end |