Method: Code42::RoleCollection#each
- Defined in:
- lib/code42/role_collection.rb
#each(&block) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/code42/role_collection.rb', line 9 def each(&block) @roles.each do |role| if block_given? block.call role else yield role end end end |