class NumberMuncher::Token::Float
Public Class Methods
regex()
click to toggle source
# File lib/number_muncher/token/float.rb, line 4 def self.regex /(#{Int.regex}|-?)#{Regexp.quote(NumberMuncher.decimal_separator)}\d+/ end
Public Instance Methods
float?()
click to toggle source
# File lib/number_muncher/token/float.rb, line 12 def float? true end
text()
click to toggle source
Calls superclass method
# File lib/number_muncher/token/float.rb, line 8 def text super.delete(NumberMuncher.thousands_separator).tr(NumberMuncher.decimal_separator, '.') end