Class: SousChef::Parser
- Inherits:
-
Object
- Object
- SousChef::Parser
- Defined in:
- lib/sous-chef/parser.rb
Instance Attribute Summary collapse
-
#config_file ⇒ Object
readonly
Returns the value of attribute config_file.
Instance Method Summary collapse
-
#initialize(config_file) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(config_file) ⇒ Parser
Returns a new instance of Parser.
4 5 6 |
# File 'lib/sous-chef/parser.rb', line 4 def initialize(config_file) @config_file = config_file end |
Instance Attribute Details
#config_file ⇒ Object (readonly)
Returns the value of attribute config_file.
2 3 4 |
# File 'lib/sous-chef/parser.rb', line 2 def config_file @config_file end |
Instance Method Details
#parse ⇒ Object
8 9 10 |
# File 'lib/sous-chef/parser.rb', line 8 def parse parse_yaml(@config_file) end |