Class: Munge::Util::Config
- Inherits:
-
Object
- Object
- Munge::Util::Config
- Defined in:
- lib/munge/util/config.rb
Class Method Summary collapse
Class Method Details
.read(path) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/munge/util/config.rb', line 5 def read(path) abspath = File.(path) yaml = read_yaml(abspath) config = if yaml.is_a?(Hash) yaml else {} end Munge::Util::SymbolHash.deep_convert(config) end |