Class: Confo::OptionsStorage
- Inherits:
-
Hash
- Object
- Hash
- Confo::OptionsStorage
- Defined in:
- lib/confo/concerns/options_manager.rb
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
178 179 180 181 182 |
# File 'lib/confo/concerns/options_manager.rb', line 178 def to_hash new_hash = {} each { |k, v| new_hash[k.kind_of?(String) ? k.to_sym : k] = Confo.convert_to_hash(v) } Hash.new(default).merge!(new_hash) end |