Sha256: 281cebd53e0ddfb21299f91338e836165569bc9acc380a90ed183234692281b9
Contents?: true
Size: 378 Bytes
Versions: 3
Compression:
Stored size: 378 Bytes
Contents
module Reality class Currency < Money::Currency module Methods def rate_to(other) Money.default_bank.get_rate(self, other) end def inspect "#<Reality::Currency #{name} (#{symbol}, #{iso_code})>" end end # Money::Currency have pretty tricky initializer def self.new(id) super(id).extend(Methods) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reality-0.1.0.alpha3 | lib/reality/currency.rb |
reality-0.1.0.alpha2 | lib/reality/currency.rb |
reality-0.1.0.alpha | lib/reality/currency.rb |