Class: Osheet::Format::Percentage

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

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 = {}) ⇒ 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