Class: Object

Inherits:
BasicObject
Defined in:
lib/object_extensions.rb

Instance Method Summary collapse

Instance Method Details

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

Return self after evaling block see www.ruby-forum.com/topic/131340

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on


26
27
28
29
# File 'lib/object_extensions.rb', line 26

def affect
  yield self
  return self
end

#sexp(r = false) ⇒ Object


31
32
33
# File 'lib/object_extensions.rb', line 31

def sexp(r = false)
  self
end

#special_formObject


35
36
37
# File 'lib/object_extensions.rb', line 35

def special_form
  false
end