Method: Money#format

Defined in:
lib/money/money.rb

#format(*rules) ⇒ String

Creates a formatted price string according to several rules.

Parameters:

Returns:

  • (String)


627
628
629
# File 'lib/money/money.rb', line 627

def format(*rules)
  Money::Formatter.new(self, *rules).to_s
end