Sha256: 1ef43fb050b85542901a13ee6496476ac15e775a38fc89bb988d63d4205f80a7
Contents?: true
Size: 302 Bytes
Versions: 3
Compression:
Stored size: 302 Bytes
Contents
module Stove class Config < ::Hash class << self def [](thing) instance[thing] end def instance @instance ||= load! end private def load! JSON.parse(File.read(File.expand_path('~/.stove'))) rescue {} end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stove-1.1.2 | lib/stove/config.rb |
stove-1.1.0 | lib/stove/config.rb |
stove-1.0.1 | lib/stove/config.rb |