Class: Troles::Common::Operations
- Defined in:
- lib/troles/common/operations.rb,
lib/troles/common/operations/read.rb,
lib/troles/common/operations/write.rb
Direct Known Subclasses
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.
Methods included from Write
Methods included from Read
Constructor Details
#initialize(role_subject) ⇒ Operations
constructor
22 23 24 |
# File 'lib/troles/common/operations.rb', line 22 def initialize role_subject @role_subject = role_subject end |
Instance Attribute Details
#role_subject ⇒ Object (readonly)
Returns the value of attribute role_subject.
18 19 20 |
# File 'lib/troles/common/operations.rb', line 18 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)
28 29 30 |
# File 'lib/troles/common/operations.rb', line 28 def each list.each { |role| yield role } end |