Class: Ant::Configuration::Loaders::YAML
- Inherits:
-
Object
- Object
- Ant::Configuration::Loaders::YAML
- Defined in:
- lib/ant/configs/loaders/yaml.rb
Overview
Class for loading yaml files
Instance Method Summary collapse
-
#initialize(path, manager) ⇒ YAML
constructor
A new instance of YAML.
-
#load! ⇒ Object
Parses and returns the file as a hash.
Constructor Details
#initialize(path, manager) ⇒ YAML
Returns a new instance of YAML.
10 11 12 13 |
# File 'lib/ant/configs/loaders/yaml.rb', line 10 def initialize(path, manager) @path = path @manager = manager end |
Instance Method Details
#load! ⇒ Object
Parses and returns the file as a hash
16 17 18 |
# File 'lib/ant/configs/loaders/yaml.rb', line 16 def load! ::YAML.load_file(@path) end |