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, #ident, #offset, #tag

Instance Method Summary collapse

Methods inherited from Token

#error, #has_no_block?, #to_s, #ws_munge

Constructor Details

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

Returns a new instance of EoiToken.



589
590
591
592
# File 'lib/rubylexer/token.rb', line 589

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

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



586
587
588
# File 'lib/rubylexer/token.rb', line 586

def file
  @file
end