Sha256: 2d1cc785bb8d7230d37543aee074d3ab30650e0a7d29f4a2aaf7b330767e6c46

Contents?: true

Size: 267 Bytes

Versions: 3

Compression:

Stored size: 267 Bytes

Contents

require 'active_support/inflector'

module Quandl
  module Configurable
    def configuration
      @configuration ||= Config.new(file_name)
    end

    private

    def file_name
      defined?(name) ? name.underscore : self.class.name.underscore
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quandl-config-0.0.3 lib/quandl/configurable.rb
quandl-config-0.0.2 lib/quandl/configurable.rb
quandl-config-0.0.1 lib/quandl/configurable.rb