Class: RubyLexer::SubitemToken

Inherits:
Token
  • Object
show all
Defined in:
lib/rubylexer/token.rb

Overview


Direct Known Subclasses

DecoratorToken

Instance Attribute Summary collapse

Attributes inherited from Token

#allow_ooo_offset, #as, #endline, #ident, #offset, #startline, #tag

Instance Method Summary collapse

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

#char2Object (readonly)

Returns the value of attribute char2.



788
789
790
# File 'lib/rubylexer/token.rb', line 788

def char2
  @char2
end

#subitemObject (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_sObject



796
797
798
# File 'lib/rubylexer/token.rb', line 796

def to_s()
   super+@char2+@subitem.to_s
end