Class: Templator::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/templator/parameter_dsl.rb

Overview

Base class to define a group. A Group instance is created whenever a group method is parsed from the DSL code. Methods are dynamically created inside the singleton of the instance to access nested parameters and groups.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Group

Returns a new instance of Group.



105
106
107
# File 'lib/templator/parameter_dsl.rb', line 105

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



104
105
106
# File 'lib/templator/parameter_dsl.rb', line 104

def name
  @name
end