class Money::Currency

def register(curr)

Options Hash: (**delimiter)
  • character (String) -- between each thousands place
  • character (String) -- between the whole and fraction
  • the (Numeric) -- proportion between the unit and
  • the (String) -- name of the fractional monetary unit
  • the (String) -- currency symbol (UTF-8 encoded)
  • the (String) -- currency name
  • the (Integer) -- international 3-digit code as
  • the (String) -- international 3-letter code as defined
  • a (Numeric) -- numerical value you can use to sort/group

Parameters:
  • curr (Hash) -- information about the currency
def register(curr)
  key = curr.fetch(:iso_code).downcase.to_sym
  @@mutex.synchronize { _instances.delete(key.to_s) }
  @table[key] = curr
  @stringified_keys = nil
end