Method: LedgerGen::Posting#amount_string
- Defined in:
- lib/ledger_gen/posting.rb
#amount_string ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/ledger_gen/posting.rb', line 29 def amount_string if @amount.nil? '' else sprintf('$%0.2f', @amount) end end |