Method: Configus::Config#to_hash
- Defined in:
- lib/configus/config.rb
#to_hash ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/configus/config.rb', line 31 def to_hash hash = {} @config.each_pair do |key, value| hash[key] = value.respond_to?(:to_hash) ? value.to_hash : value end hash end |