Class: String
Instance Method Summary collapse
-
#Money_rep(currency, time = nil) ⇒ Object
Exact conversion to Money representation value.
Instance Method Details
#Money_rep(currency, time = nil) ⇒ Object
Exact conversion to Money representation value.
27 28 29 30 31 |
# File 'lib/currency/core_extensions.rb', line 27 def Money_rep(currency, time = nil) x = currency.parse(self, :currency => currency, :time => time) x = x.rep if x.respond_to?(:rep) x end |