class NumberMuncher::Token::Int

Public Class Methods

regex() click to toggle source
# File lib/number_muncher/token/int.rb, line 4
def self.regex
  /-?(\d{1,3}(#{Regexp.quote(NumberMuncher.thousands_separator)}\d{3})+|\d+)/
end

Public Instance Methods

int?() click to toggle source
# File lib/number_muncher/token/int.rb, line 12
def int?
  true
end
text() click to toggle source
Calls superclass method
# File lib/number_muncher/token/int.rb, line 8
def text
  super.delete(NumberMuncher.thousands_separator)
end