Sha256: bd1ba2e5c2eb83b7a15359e3d2faeb00e7af9b245ceba7480de420423b1405e0

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 Bytes

Contents

# -*- encoding : utf-8 -*-
module Exchange
  
  # constant for broken big decimal division in MRI 2.1.0
  # https://www.ruby-forum.com/topic/4419577
  #
  BROKEN_BIG_DECIMAL_DIVISION = (RUBY_VERSION == '2.1.0' && RUBY_ENGINE == 'ruby')
  
  # The current version of the exchange gem
  #
  VERSION = '1.2.2'.freeze
  
  # The root installation path of the gem
  # @version 0.5
  # @since 0.1
  #
  ROOT_PATH = File.dirname(__FILE__).to_s.sub(/\/lib\/exchange\/?$/, '')
  
  # The error that gets thrown if no conversion rate is available
  # @version 0.1
  # @since 0.1
  #
  NoRateError       = Class.new StandardError
  
  # The error that gets thrown if the given currency is not a currency
  # @version 0.10
  # @since 0.10
  #
  NoCurrencyError   = Class.new ArgumentError
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exchange-1.2.2 lib/exchange/base.rb