Class: Macros4Cuke::UnaryElement
- Inherits:
-
Object
- Object
- Macros4Cuke::UnaryElement
- Defined in:
- lib/macros4cuke/templating/unary-element.rb
Overview
Base class used internally by the template engine. The generalization of any element from a template that has one variable whose actual value influences the rendition.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
The name of the placeholder/variable.
Instance Method Summary collapse
-
#initialize(aVarName) ⇒ UnaryElement
constructor
A new instance of UnaryElement.
Constructor Details
#initialize(aVarName) ⇒ UnaryElement
Returns a new instance of UnaryElement.
14 15 16 |
# File 'lib/macros4cuke/templating/unary-element.rb', line 14 def initialize(aVarName) @name = aVarName end |
Instance Attribute Details
#name ⇒ Object (readonly)
The name of the placeholder/variable.
11 12 13 |
# File 'lib/macros4cuke/templating/unary-element.rb', line 11 def name @name end |