Class: Nymphia::DSL::Context::Group
- Inherits:
-
Object
- Object
- Nymphia::DSL::Context::Group
- Includes:
- RecursiveMethods
- Defined in:
- lib/nymphia/dsl/context/group.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, name, &block) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(context, name, &block) ⇒ Group
Returns a new instance of Group.
6 7 8 9 10 11 12 13 14 |
# File 'lib/nymphia/dsl/context/group.rb', line 6 def initialize(context, name, &block) @group_name = name @context = context @result = { hosts: [], } instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
4 5 6 |
# File 'lib/nymphia/dsl/context/group.rb', line 4 def result @result end |