Method: Concurrent::ImmutableStruct#each
- Defined in:
- lib/concurrent-ruby/concurrent/immutable_struct.rb
#each {|value| ... } ⇒ Object
Yields the value of each struct member in order. If no block is given an enumerator is returned.
56 57 58 59 |
# File 'lib/concurrent-ruby/concurrent/immutable_struct.rb', line 56 def each(&block) return enum_for(:each) unless block_given? ns_each(&block) end |