module Polyfill::V2_3::Kernel

Public Instance Methods

loop() { || ... } click to toggle source
Calls superclass method
# File lib/polyfill/v2_3/kernel.rb, line 4
def loop
  return super unless block_given?

  super do
    begin
      yield
    rescue StopIteration => enum
      break enum.result
    end
  end
end