Class: Templator::Group
- Inherits:
-
Object
- Object
- Templator::Group
- 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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Group
constructor
A new instance of Group.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
104 105 106 |
# File 'lib/templator/parameter_dsl.rb', line 104 def name @name end |