Class: CapUtil::ServerRoles::RoleSet
- Inherits:
-
Object
- Object
- CapUtil::ServerRoles::RoleSet
- Defined in:
- lib/cap-util/server_roles.rb
Instance Attribute Summary collapse
-
#role_defs ⇒ Object
readonly
Returns the value of attribute role_defs.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(roles_hash) ⇒ RoleSet
constructor
A new instance of RoleSet.
Constructor Details
Instance Attribute Details
#role_defs ⇒ Object (readonly)
Returns the value of attribute role_defs.
27 28 29 |
# File 'lib/cap-util/server_roles.rb', line 27 def role_defs @role_defs end |
Instance Method Details
#each(&block) ⇒ Object
35 36 37 |
# File 'lib/cap-util/server_roles.rb', line 35 def each(&block) @role_defs.each {|role_def| role_def.apply(&block)} end |