lib/trace_tree/config.rb in trace_tree-0.2.23 vs lib/trace_tree/config.rb in trace_tree-0.3.0
- old
+ new
@@ -9,10 +9,10 @@
}.freeze
def self.load
config = DEFAULT
custom = File.join ENV['HOME'], '.trace_tree_config'
- if File.exists?(custom) && (hash = YAML.load File.read custom)
+ if File.exist?(custom) && (hash = YAML.load File.read custom)
hash.select!{ |k, v| config.include? k }
config = config.merge hash
end
OpenStruct.new config
end