Class: Miam::DSL::Context::Group
- Inherits:
-
Object
- Object
- Miam::DSL::Context::Group
- Includes:
- TemplateHelper
- Defined in:
- lib/miam/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.
Methods included from TemplateHelper
Constructor Details
#initialize(context, name, &block) ⇒ Group
Returns a new instance of Group.
4 5 6 7 8 9 |
# File 'lib/miam/dsl/context/group.rb', line 4 def initialize(context, name, &block) @group_name = name @context = context.merge(:group_name => name) @result = {:policies => {}, :attached_managed_policies => []} instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
11 12 13 |
# File 'lib/miam/dsl/context/group.rb', line 11 def result @result end |