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