Sha256: 3e6ac9f1dd90f46f20ecc9dceb4ce6c2fb06340e846170e28c01a2bd64306043

Contents?: true

Size: 275 Bytes

Versions: 2

Compression:

Stored size: 275 Bytes

Contents

# frozen_string_literal: true

module Finrb
  include ActiveSupport::Configurable

  default_values = { eps: '1.0e-16', guess: 1.0, business_days: false, periodic_compound: false }

  default_values.each do |key, value|
    config.__send__("#{key.to_sym}=", value)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finrb-0.1.3 lib/finrb/config.rb
finrb-0.1.2 lib/finrb/config.rb