Method: DotConfig::Configuration#to_hash

Defined in:
lib/dot_config/configuration.rb

#to_hashHash

Returns the config like a Hash.

Returns:

  • (Hash)

    The original hash with keys symbolized.



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