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)
-
- (Object) in(currency, options = {})
The in method instantiates a money object from a numeric type.
Instance Method Details
- (Object) in(currency, options = {})
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 |