Class: StoreConfigurable::Object
- Inherits:
-
ActiveSupport::ProxyObject
- Object
- ActiveSupport::ProxyObject
- StoreConfigurable::Object
- Extended by:
- Coding
- Includes:
- Behavior
- Defined in:
- lib/store_configurable/object.rb
Overview
The is the object returned by the config
method. It does nothing more than delegate all calls to a tree of DirtyTrackingOrderedOptions
objects which are basically hashes.
Defined Under Namespace
Constant Summary collapse
- OMAP_CONVERTER =
lambda do |config| ::ActiveSupport::OrderedHash[config.to_a].tap do |omap| omap.each { |k,v| omap[k] = OMAP_CONVERTER.call(v) if v.is_a?(::Hash) } end end
- YAML_LOADER =
lambda do |, key, value| value.is_a?(::Hash) ? value.each { |k,v| YAML_LOADER.call(.send(:[],key), k, v) } : .send(:[]=, key, value) end
Instance Attribute Summary
Attributes included from Behavior
Method Summary
Methods included from Coding
Methods included from Behavior
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class StoreConfigurable::Object::Behavior