Sha256: c7a50b7d08e30f3a1790240b29d8827659bf030be0525318e1f9660293f7ddd2

Contents?: true

Size: 148 Bytes

Versions: 2

Compression:

Stored size: 148 Bytes

Contents

module DuckPuncher
  module Numeric
    def to_currency
      '%.2f' % self.round(2)
    end
  end
end

Numeric.send(:include, DuckPuncher::Numeric)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
duck_puncher-0.0.2 lib/duck_puncher/numeric.rb
duck_puncher-0.0.1 lib/duck_puncher/numeric.rb