Module: Exchange::Conversability
- Defined in:
- lib/exchange/core_extensions/numeric/conversability.rb
Overview
The conversability module which will get included in Fixnum and Float, giving them the in currency instantiate methods
Instance Method Summary collapse
-
#in(currency, options = {}) ⇒ Object
The in method instantiates a money object from a numeric type.
Instance Method Details
#in(currency, options = {}) ⇒ Object
The in method instantiates a money object from a numeric type.
32 33 34 |
# File 'lib/exchange/core_extensions/numeric/conversability.rb', line 32 def in currency, ={} Money.new(self, currency, ) end |