Class: Object

Inherits:
BasicObject
Defined in:
lib/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#as {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



4
5
6
# File 'lib/core_ext.rb', line 4

def as
  yield self
end