Method: DotConfig::Configuration#to_hash
- Defined in:
- lib/dot_config/configuration.rb
#to_hash ⇒ Hash
Returns the config like a Hash
.
77 78 79 80 81 |
# File 'lib/dot_config/configuration.rb', line 77 def to_hash hash = Hash.new @config.each { |k, v| hash[k] = v.is_a?(self.class) ? v.to_hash : v } hash end |