class

StopIteration

Inherits IndexError < Exception < Reference < Object

Ruby StopIteration — остановка итератора (Kernel#loop, Enumerator#next).

Constructors

new(message : String | Nil = nil, result : String | Int32 | Int64 | Float64 | Bool | Nil = nil)
Source

Instance methods

result

Значение, переданное в stop (или возвращённое итератором).

Source