Module: StoreAsInt::ActsAsMoneyInt
- Defined in:
- lib/store_as_int/money.rb
Instance Method Summary collapse
Instance Method Details
#dollar_str(padding: 0) ⇒ Object
38 39 40 |
# File 'lib/store_as_int/money.rb', line 38 def dollar_str(padding: 0) to_cents.to_s(true, padding: padding.to_i) end |
#to_cents ⇒ Object
42 43 44 |
# File 'lib/store_as_int/money.rb', line 42 def to_cents StoreAsInt::Money.new self end |