Sha256: 5f36cbe6dd0d3ccd39a25295a7961fd2cc37db8bb62d5b92cd200600437403d6

Contents?: true

Size: 396 Bytes

Versions: 13

Compression:

Stored size: 396 Bytes

Contents

require 'enumeration'
require 'osheet/format/numeric'

module Osheet::Format

  class Currency < Osheet::Format::Numeric
    def initialize(opts={})
      super({
        :symbol => :dollar,
        :decimal_places => 2,
        :comma_separator => true
      }.merge(opts))
    end

    protected

    # used by 'key' in Numeric base class
    def key_prefix
      "currency"
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
osheet-1.0.0.rc.2 lib/osheet/format/currency.rb
osheet-1.0.0.rc.1 lib/osheet/format/currency.rb
osheet-0.10.0 lib/osheet/format/currency.rb
osheet-0.9.2 lib/osheet/format/currency.rb
osheet-0.9.1 lib/osheet/format/currency.rb
osheet-0.9.0 lib/osheet/format/currency.rb
osheet-0.8.0 lib/osheet/format/currency.rb
osheet-0.7.0 lib/osheet/format/currency.rb
osheet-0.6.0 lib/osheet/format/currency.rb
osheet-0.5.0 lib/osheet/format/currency.rb
osheet-0.4.0 lib/osheet/format/currency.rb
osheet-0.3.0 lib/osheet/format/currency.rb
osheet-0.2.0 lib/osheet/format/currency.rb