VERSION | = | '0.7.1' |
Access the configured key‘s value.
# File lib/app_config.rb, line 33 def [](key) setup unless setup? @@storage[key] end
Accepts an options hash or a block. See AppConfig::Base for valid storage methods. TODO: This should probably return true/false.
# File lib/app_config.rb, line 18 def setup(options = {}, &block) @@storage = AppConfig::Base.new(options, &block) end
Returns true if +AppConfig.setup()+ has been called.
# File lib/app_config.rb, line 23 def setup? defined?(@@storage) && !@@storage.empty? end