Sha256: c21c319cda5ab807256266d47a9c5cf59f45112e2eb4acf10091289054f69456

Contents?: true

Size: 217 Bytes

Versions: 2

Compression:

Stored size: 217 Bytes

Contents

class Freighthop::Config
  def self.file
    Freighthop.host_root.join('.freighthop.json')
  end

  def self.config
    @config = JSON.parse(file.read)
  end

  def self.fetch(*args)
    config.fetch(*args)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
freighthop-0.0.6 lib/freighthop/config.rb
freighthop-0.0.5 lib/freighthop/config.rb