Class: Osheet::Format::Currency
- Defined in:
- lib/osheet/format/currency.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Numeric
#comma_separator, #decimal_places
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Currency
constructor
A new instance of Currency.
Methods inherited from Numeric
Constructor Details
#initialize(opts = {}) ⇒ Currency
Returns a new instance of Currency.
7 8 9 10 11 12 13 |
# File 'lib/osheet/format/currency.rb', line 7 def initialize(opts={}) super({ :symbol => 'dollar', :decimal_places => 2, :comma_separator => true }.merge(opts)) end |