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, #endline, #ident, #offset, #startline, #tag
Instance Method Summary collapse
-
#initialize(ident, subitem) ⇒ SubitemToken
constructor
A new instance of SubitemToken.
- #to_s ⇒ Object
Methods inherited from Token
#dump, #error, #has_no_block?, #inspect, #linecount, #orig_inspect, #ws_munge
Constructor Details
#initialize(ident, subitem) ⇒ SubitemToken
Returns a new instance of SubitemToken.
791 792 793 794 |
# File 'lib/rubylexer/token.rb', line 791 def initialize(ident,subitem) super ident @subitem=subitem end |
Instance Attribute Details
#char2 ⇒ Object (readonly)
Returns the value of attribute char2.
788 789 790 |
# File 'lib/rubylexer/token.rb', line 788 def char2 @char2 end |
#subitem ⇒ Object (readonly)
Returns the value of attribute subitem.
789 790 791 |
# File 'lib/rubylexer/token.rb', line 789 def subitem @subitem end |
Instance Method Details
#to_s ⇒ Object
796 797 798 |
# File 'lib/rubylexer/token.rb', line 796 def to_s() super+@char2+@subitem.to_s end |