module NumberWords
Constants
- VERSION
Public Class Methods
add_handler(locale, handler)
click to toggle source
# File lib/number_words.rb, line 10 def self.add_handler locale, handler @@handlers[locale] = handler end
int_to_words(int, options={ })
click to toggle source
# File lib/number_words.rb, line 6 def self.int_to_words int, options={ } @@handlers[I18n.locale.to_sym].int_to_words(int.to_i, options).strip end