Class: Abyss::Store
Overview
Store
Utility for Abyss configuration. Intended for use within a host app’s initializer, eg: /config/initializers/foundation.rb
Examples:
Abyss.configure do
title 'Abyss Demo'
backend do
support do
email '[email protected]'
phone '303-555-1234'
end
end
end
Instance Attribute Summary
Attributes inherited from DeepStore
Instance Method Summary collapse
-
#assign(name, values) ⇒ Object
Overrides DeepStore#assign.
Methods inherited from DeepStore
#get, #initialize, #method_missing
Constructor Details
This class inherits a constructor from Abyss::DeepStore
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Abyss::DeepStore
Instance Method Details
#assign(name, values) ⇒ Object
Overrides DeepStore#assign. Simply assigns the configuration name to the first value.
28 29 30 |
# File 'lib/abyss/store.rb', line 28 def assign(name, values) self.configurations[name] = values.first end |