Class: RubyLexer::NumberToken

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

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

#negativeObject



153
# File 'lib/rubylexer/token.rb', line 153

def negative; /\A-/ === ident end

#to_sObject



152
# File 'lib/rubylexer/token.rb', line 152

def to_s; @ident.to_s end