Ruby is an interpreted object-oriented programming language often used for web development. It also offers many scripting features to process plain text and serialized files, or manage system tasks. It is simple, straightforward, and extensible.
Ruby API is a Ruby on Rails app that makes browsing and searching Ruby's documentation easy and fast for users.
Raised to stop the iteration, in particular by Enumerator#next. It is rescued by Kernel#loop.
Returns the return value of the iterator.
o = Object.new
e = o.to_enum
puts e.next #=> 1
puts e.next #=> 2
puts e.next #=> 3
rescue StopIteration => ex
puts ex.result #=> 100