Class: Bolt::PAL::YamlPlan::EvaluableString
- Inherits:
-
Object
- Object
- Bolt::PAL::YamlPlan::EvaluableString
- Defined in:
- lib/bolt/pal/yaml_plan.rb
Overview
This class wraps a value parsed from YAML which may be Puppet code. That includes double-quoted strings and string literals, each of which subclasses this parent class in order to implement its own evaluation logic.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ EvaluableString
constructor
A new instance of EvaluableString.
Constructor Details
#initialize(value) ⇒ EvaluableString
Returns a new instance of EvaluableString.
102 103 104 |
# File 'lib/bolt/pal/yaml_plan.rb', line 102 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
101 102 103 |
# File 'lib/bolt/pal/yaml_plan.rb', line 101 def value @value end |
Instance Method Details
#==(other) ⇒ Object
106 107 108 |
# File 'lib/bolt/pal/yaml_plan.rb', line 106 def ==(other) self.class == other.class && @value == other.value end |