Class: String

Inherits:
Object show all
Defined in:
lib/currency/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#Money_rep(currency, time = nil) ⇒ Object

Exact conversion to Money representation value.



35
36
37
38
39
# File 'lib/currency/core_extensions.rb', line 35

def Money_rep(currency, time = nil)
  x = currency.parse(self, :currency => currency, :time => time)
  x = x.rep if x.respond_to?(:rep)
  x
end