lib/money/currency.rb
# The number of decimal places needed.
#
# @return [Integer]
The number of decimal places needed.
The number of decimal places needed .
def decimal_places
      cache = self.class.decimal_places_cache
      places  = cache[subunit_to_unit]
      unless places
        places = calculate_decimal_places(subunit_to_unit)
        cache[subunit_to_unit] = places
      end
      places
    end
def decimal_places cache = self . class . decimal_places_cache places = cache [ subunit_to_unit ] unless places places = calculate_decimal_places ( subunit_to_unit ) cache [ subunit_to_unit ] = places end places end
The number of decimal places needed.
The number of decimal places needed .
None
Integer