Class: Econfig::YAML
- Inherits:
-
Object
- Object
- Econfig::YAML
- Defined in:
- lib/econfig/yaml.rb
Instance Method Summary collapse
- #get(key) ⇒ Object
- #init ⇒ Object
-
#initialize(path) ⇒ YAML
constructor
A new instance of YAML.
Constructor Details
#initialize(path) ⇒ YAML
Returns a new instance of YAML.
3 4 5 |
# File 'lib/econfig/yaml.rb', line 3 def initialize(path) @path = path end |
Instance Method Details
#get(key) ⇒ Object
7 8 9 |
# File 'lib/econfig/yaml.rb', line 7 def get(key) [key] end |