Kiss A simpler, smarter web application framework for Ruby

Kiss::Format::Integer Subclass of self

Public Class Methods

parse(value) source

Not documented

    # File lib/kiss/format.rb, line 43
        def parse(value)
          value.to_i
        end
    
validate(value) source

Not documented

    # File lib/kiss/format.rb, line 47
        def validate(value)
          # remove commas for thousands
          value =~ /\d/ ? super(value.gsub(/,/,'')) : nil
        end
    
value_to_s(value) source

Not documented

    # File lib/kiss/format.rb, line 52
        def value_to_s(value)
          # add commas for thousands
          value.format_thousands
        end
    

Disabled; run with $DEBUG to generate this.