Class: RubyLexer::EoiToken

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

Overview


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, #to_s, #ws_munge

Constructor Details

#initialize(cause, file, offset = nil, line = nil) ⇒ EoiToken

Returns a new instance of EoiToken.



705
706
707
708
709
# File 'lib/rubylexer/token.rb', line 705

def initialize(cause,file, offset=nil,line=nil)
   super(cause,offset)
   @file=file
   @endline=line
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



702
703
704
# File 'lib/rubylexer/token.rb', line 702

def file
  @file
end