Method: EnumeratorQueue#each_item
- Defined in:
- src/ruby/bin/math_server.rb
#each_item ⇒ Object
83 84 85 86 87 88 89 90 91 |
# File 'src/ruby/bin/math_server.rb', line 83 def each_item return enum_for(:each_item) unless block_given? loop do r = @q.pop break if r.equal?(@sentinel) fail r if r.is_a? Exception yield r end end |