Class: ConfigurationService::Factory::Context::SymbolicAccessWrapper
- Inherits:
-
Hash
- Object
- Hash
- ConfigurationService::Factory::Context::SymbolicAccessWrapper
- Defined in:
- lib/configuration_service/factory/context/symbolic_access_wrapper.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ SymbolicAccessWrapper
constructor
A new instance of SymbolicAccessWrapper.
Constructor Details
#initialize(hash) ⇒ SymbolicAccessWrapper
Returns a new instance of SymbolicAccessWrapper.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/configuration_service/factory/context/symbolic_access_wrapper.rb', line 9 def initialize(hash) hash.each do |k, v| case v when Hash self.store(k.intern, self.class.new(v)) else self.store(k.intern, v) end end self.default_proc = indifferent_access_default_proc end |