Class: Object

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

Class Method Summary collapse

Class Method Details

.hpricot_slate_method_addedObject



53
# File 'lib/hpricot/blankslate.rb', line 53

alias_method :hpricot_slate_method_added, :method_added

.method_added(name) ⇒ Object

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



57
58
59
60
61
# File 'lib/hpricot/blankslate.rb', line 57

def method_added(name)
  hpricot_slate_method_added(name)
  return if self != Object
  Hpricot::BlankSlate.hide(name)
end