Class: Miam::DSL::Context::Group
- Inherits:
-
Object
- Object
- Miam::DSL::Context::Group
- 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(name, &block) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(name, &block) ⇒ Group
Returns a new instance of Group.
2 3 4 5 6 |
# File 'lib/miam/dsl/context/group.rb', line 2 def initialize(name, &block) @group_name = name @result = {:policies => {}} instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
8 9 10 |
# File 'lib/miam/dsl/context/group.rb', line 8 def result @result end |