Class: Macros4Cuke::Templating::UnaryElement

Inherits:
Object
  • Object
show all
Defined in:
lib/macros4cuke/templating/engine.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

Placeholder, Section

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aVarName) ⇒ UnaryElement

Returns a new instance of UnaryElement.

Parameters:

  • aVarName (String)

    The name of the placeholder from a template.



63
64
65
# File 'lib/macros4cuke/templating/engine.rb', line 63

def initialize(aVarName)
  @name = aVarName
end

Instance Attribute Details

#nameObject (readonly)

The name of the placeholder/variable.



60
61
62
# File 'lib/macros4cuke/templating/engine.rb', line 60

def name
  @name
end