class TroleGroups::Operations

Attributes

rolegroup_subject[R]

Public Class Methods

new(rolegroup_subject) click to toggle source

constructor @param [Object] the role subject, fx a User or UserAccount

# File lib/trole_groups/operations.rb, line 15
def initialize rolegroup_subject
  @rolegroup_subject = rolegroup_subject
end

Public Instance Methods

each() { |rolegroup| ... } click to toggle source

required method to act as enumerable iterates and yields all roles in the role list (Symbols)

# File lib/trole_groups/operations.rb, line 21
def each
  list.each { |rolegroup| yield rolegroup }
end