Class: RubyLexer::NumberToken
Overview
Instance Attribute Summary
Attributes inherited from Token
#allow_ooo_offset, #as, #ident, #offset, #tag
Instance Method Summary collapse
Methods inherited from Token
#error, #has_no_block?, #initialize, #ws_munge
Constructor Details
This class inherits a constructor from RubyLexer::Token
Instance Method Details
#negative ⇒ Object
153 |
# File 'lib/rubylexer/token.rb', line 153 def negative; /\A-/ === ident end |
#to_s ⇒ Object
152 |
# File 'lib/rubylexer/token.rb', line 152 def to_s; @ident.to_s end |