Class: Watnow::Config::YamlParser
- Inherits:
-
Object
- Object
- Watnow::Config::YamlParser
- Defined in:
- lib/watnow/config.rb
Overview
Simple YAML parser Returns empty object if no file found
Instance Method Summary collapse
Instance Method Details
#parse ⇒ Object
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 |