Method: Money#format

Defined in:
lib/money/money.rb

#format(*rules) ⇒ String

Creates a formatted price string according to several rules.

Parameters:

  • See (Hash)

    Money::Formatter for the list of formatting options

Returns:

  • (String)


560
561
562
# File 'lib/money/money.rb', line 560

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