Class: Object

Inherits:
BasicObject
Defined in:
lib/blankslate.rb

Overview

See Also:

Class Method Summary collapse

Class Method Details

.blank_slate_method_addedObject


70
# File 'lib/blankslate.rb', line 70

alias_method :blank_slate_method_added, :method_added

.find_hidden_method(_name) ⇒ Object


81
82
83
# File 'lib/blankslate.rb', line 81

def find_hidden_method(_name)
  nil
end

.method_added(name) ⇒ Object

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


74
75
76
77
78
79
# File 'lib/blankslate.rb', line 74

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