module Polyfill::V2_5::Kernel

Public Instance Methods

yield_self() { |self| ... } click to toggle source
# File lib/polyfill/v2_5/kernel.rb, line 4
def yield_self
  unless block_given?
    return ::Enumerator.new(1) do |yielder|
      yielder.yield(self)
    end
  end

  yield(self)
end