Module: Kernel

Defined in:
lib/parlour/kernel_hack.rb

Instance Method Summary collapse

Instance Method Details

#yield_self {|_self| ... } ⇒ Object Also known as: then

Yields:

  • (_self)

Yield Parameters:

  • _self (Kernel)

    the object that the method was called on



2
3
4
5
# File 'lib/parlour/kernel_hack.rb', line 2

def yield_self
  return to_enum(__method__) { 1 } unless block_given?
  yield self
end