Class: Watnow::Config::YamlParser

Inherits:
Object
  • Object
show all
Defined in:
lib/watnow/config.rb

Overview

Simple YAML parser Returns empty object if no file found

Instance Method Summary collapse

Instance Method Details

#parseObject



42
43
44
45
46
47
48
# File 'lib/watnow/config.rb', line 42

def parse
  begin
    YAML.load_file("#{ENV['HOME']}/.watnowconfig")
  rescue
    {}
  end
end