class Money::RatesStore::Memory

def each_rate(&block)

Returns:
  • (Enumerator) -

Other tags:
    Yieldparam: rate - Exchange rate.
    Yieldparam: iso_to - Currency ISO string.
    Yieldparam: iso_from - Currency ISO string.
def each_rate(&block)
  return to_enum(:each_rate) unless block_given?
  guard.synchronize do
    rates.each do |key, rate|
      iso_from, iso_to = key.split(INDEX_KEY_SEPARATOR)
      yield iso_from, iso_to, rate
    end
  end
end