module MoneyInWords

encoding: utf-8

encoding: utf-8

Constants

VERSION

Public Class Methods

to_words(num) click to toggle source
# File lib/money_in_words.rb, line 10
def self.to_words(num)
  case num
  when Integer
    MoneyInWords::Integer.new(num).to_words
  when Float
    MoneyInWords::Float.new(num).to_words
  end
end