class Osheet::Format::Currency
Public Class Methods
new(opts={})
click to toggle source
Calls superclass method
Osheet::Format::Numeric::new
# File lib/osheet/format/currency.rb, line 7 def initialize(opts={}) super({ :symbol => 'dollar', :decimal_places => 2, :comma_separator => true }.merge(opts)) end
Protected Instance Methods
key_prefix()
click to toggle source
used by ‘key’ in Numeric
base class
# File lib/osheet/format/currency.rb, line 18 def key_prefix "currency" end