AppConfig::Storage::Base
Mongo storage method.
# File lib/app_config/storage/mongo.rb, line 18 def initialize(options) @connected = false @options = DEFAULTS.merge(options) setup_connection fetch_data! end
# File lib/app_config/storage/mongo.rb, line 25 def [](key) @data[key] end
# File lib/app_config/storage/mongo.rb, line 29 def []=(key, value) @data[key] = value save! end
# File lib/app_config/storage/mongo.rb, line 34 def empty? @data.empty? end
[Validate]
Generated with the Darkfish Rdoc Generator 2.