class Fixnum

Extends Fixnum class with to_comma and to_name

Public Instance Methods

to_comma() click to toggle source
# File lib/number_name_string.rb, line 15
def to_comma
  self.to_s.add_commas
end
to_name() click to toggle source
# File lib/number_name_string.rb, line 19
def to_name
  NumberNameString[self]
end