Class: Osheet::Format::Currency

Inherits:
Numeric
  • Object
show all
Defined in:
lib/osheet/format/currency.rb

Direct Known Subclasses

Accounting

Instance Attribute Summary

Attributes inherited from Numeric

#comma_separator, #decimal_places

Instance Method Summary collapse

Methods inherited from Numeric

#key, #style

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