Class: RubyLexer::SubitemToken
Overview
Direct Known Subclasses
Instance Attribute Summary collapse
-
#char2 ⇒ Object
readonly
Returns the value of attribute char2.
-
#subitem ⇒ Object
readonly
Returns the value of attribute subitem.
Attributes inherited from Token
#allow_ooo_offset, #as, #ident, #offset, #tag
Instance Method Summary collapse
-
#initialize(ident, subitem) ⇒ SubitemToken
constructor
A new instance of SubitemToken.
- #to_s ⇒ Object
Methods inherited from Token
#error, #has_no_block?, #ws_munge
Constructor Details
#initialize(ident, subitem) ⇒ SubitemToken
Returns a new instance of SubitemToken.
661 662 663 664 |
# File 'lib/rubylexer/token.rb', line 661 def initialize(ident,subitem) super ident @subitem=subitem end |
Instance Attribute Details
#char2 ⇒ Object (readonly)
Returns the value of attribute char2.
658 659 660 |
# File 'lib/rubylexer/token.rb', line 658 def char2 @char2 end |
#subitem ⇒ Object (readonly)
Returns the value of attribute subitem.
659 660 661 |
# File 'lib/rubylexer/token.rb', line 659 def subitem @subitem end |
Instance Method Details
#to_s ⇒ Object
666 667 668 |
# File 'lib/rubylexer/token.rb', line 666 def to_s() super+@char2+@subitem.to_s end |