lib/da_money/money.rb
def conversion_rates
        @conversion_rates ||= File.exist?('config/conversion_rates.yml') ? \
          YAML.load_file('config/conversion_rates.yml') : \
          raise(Exception.new("'config/conversion_rates.yml' does not seem to exist, " +
            "check README for details!"))
      end
# Reads and returns the configuration file with the conversion rates.
#
# @return [Hash]
Reads and returns the configuration file with the conversion rates.
Reads and returns the configuration file with the conversion rates .
def conversion_rates
        @conversion_rates ||= File.exist?('config/conversion_rates.yml') ? \
          YAML.load_file('config/conversion_rates.yml') : \
          raise(Exception.new("'config/conversion_rates.yml' does not seem to exist, " +
            "check README for details!"))
      end
def conversion_rates @conversion_rates ||= File . exist? ( 'config/conversion_rates.yml' ) ? YAML . load_file ( 'config/conversion_rates.yml' ) : raise ( Exception . new ( "'config/conversion_rates.yml' does not seem to exist, " + "check README for details!" ) ) end
Reads and returns the configuration file with the conversion rates.
Reads and returns the configuration file with the conversion rates .
None
Hash