Class: Itamae::DefaultAttributes::EvalContext
- Inherits:
-
Object
- Object
- Itamae::DefaultAttributes::EvalContext
- Defined in:
- lib/itamae/default_attributes/eval_context.rb
Instance Attribute Summary collapse
-
#recipe ⇒ Object
readonly
Returns the value of attribute recipe.
Instance Method Summary collapse
- #attributes(attributes_hash) ⇒ Object
-
#initialize(recipe) ⇒ EvalContext
constructor
A new instance of EvalContext.
Constructor Details
#initialize(recipe) ⇒ EvalContext
Returns a new instance of EvalContext.
6 7 8 |
# File 'lib/itamae/default_attributes/eval_context.rb', line 6 def initialize(recipe) @recipe = recipe end |
Instance Attribute Details
#recipe ⇒ Object (readonly)
Returns the value of attribute recipe.
4 5 6 |
# File 'lib/itamae/default_attributes/eval_context.rb', line 4 def recipe @recipe end |
Instance Method Details
#attributes(attributes_hash) ⇒ Object
10 11 12 |
# File 'lib/itamae/default_attributes/eval_context.rb', line 10 def attributes(attributes_hash) recipe.runner.node.reverse_merge!(attributes_hash) end |