Sha256: 4b11281a6fcd12bb9916d3f31ca990f10ab8c27dda631b1825353b61a05fb8ae
Contents?: true
Size: 232 Bytes
Versions: 2
Compression:
Stored size: 232 Bytes
Contents
module Kosher # A price. class Price < Structure key :cents, :type => Integer key :currency def to_money raise TypeError, "Cannot render money" unless cents Money.new(cents, currency) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kosher-0.8.0 | lib/kosher/price.rb |
kosher-0.7.0 | lib/kosher/price.rb |