Class: Trole::Operations
- Defined in:
- lib/trole/operations.rb,
lib/trole/operations/read.rb,
lib/trole/operations/write.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#role_subject ⇒ Object
readonly
Returns the value of attribute role_subject.
Instance Method Summary collapse
-
#each ⇒ Object
required method to act as enumerable iterates and yields all roles in the role list (Symbols).
-
#initialize(role_subject) ⇒ Operations
constructor
constructor.
Constructor Details
#initialize(role_subject) ⇒ Operations
constructor
23 24 25 |
# File 'lib/trole/operations.rb', line 23 def initialize role_subject @role_subject = role_subject end |
Instance Attribute Details
#role_subject ⇒ Object (readonly)
Returns the value of attribute role_subject.
19 20 21 |
# File 'lib/trole/operations.rb', line 19 def role_subject @role_subject end |
Instance Method Details
#each ⇒ Object
required method to act as enumerable iterates and yields all roles in the role list (Symbols)
29 30 31 |
# File 'lib/trole/operations.rb', line 29 def each list.each { |role| yield role } end |