RubyMoney/money

View on GitHub
lib/money/locale_backend/currency.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'money/locale_backend/base'

class Money
  module LocaleBackend
    class Currency < Base
      def lookup(key, currency)
        currency.public_send(key) if currency.respond_to?(key)
      end
    end
  end
end