Class: Object

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

Class Method Summary (collapse)

Class Method Details

+ (Object) hpricot_slate_method_added



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

alias_method :hpricot_slate_method_added, :method_added

+ (Object) method_added(name)

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