class Money::Currency
def unregister(curr)
-
(Boolean)- true if the currency previously existed, false
Parameters:
-
curr(Object) -- A Hash with the key `:iso_code`, or the ISO code
def unregister(curr) if curr.is_a?(Hash) key = curr.fetch(:iso_code).downcase.to_sym else key = curr.downcase.to_sym end existed = @table.delete(key) @stringified_keys = nil if existed existed ? true : false end