Class: Macros4Cuke::UnaryElement

Inherits:
Object
  • Object
show all
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

Templating::Placeholder, Templating::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.



14
15
16
# File 'lib/macros4cuke/templating/unary-element.rb', line 14

def initialize(aVarName)
  @name = aVarName
end

Instance Attribute Details

#nameObject (readonly)

The name of the placeholder/variable.



11
12
13
# File 'lib/macros4cuke/templating/unary-element.rb', line 11

def name
  @name
end