Class: Object

Inherits:
BasicObject
Defined in:
lib/kleisli/blank.rb

Overview

Same as above, except in Object.

Class Method Summary collapse

Class Method Details

.blank_slate_method_addedObject



78
# File 'lib/kleisli/blank.rb', line 78

alias_method :blank_slate_method_added, :method_added

.find_hidden_method(name) ⇒ Object



89
90
91
# File 'lib/kleisli/blank.rb', line 89

def find_hidden_method(name)
  nil
end

.method_added(name) ⇒ Object

Detect method additions to Object and remove them in the Blank class.



82
83
84
85
86
87
# File 'lib/kleisli/blank.rb', line 82

def method_added(name)
  result = blank_slate_method_added(name)
  return result if self != Object
  Blank.hide(name)
  result
end