Class: Object

Inherits:
BasicObject
Defined in:
lib/grifter/blankslate.rb

Overview

Same as above, except in Object.

Class Method Summary collapse

Class Method Details

.blank_slate_method_addedObject



92
# File 'lib/grifter/blankslate.rb', line 92

alias_method :blank_slate_method_added, :method_added

.find_hidden_method(name) ⇒ Object



103
104
105
# File 'lib/grifter/blankslate.rb', line 103

def find_hidden_method(name)
  nil
end

.method_added(name) ⇒ Object

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



96
97
98
99
100
101
# File 'lib/grifter/blankslate.rb', line 96

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