Class: String
Overview
External representation mixin
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.
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 |