Class: Hpricot::Elements

Inherits:
Object
  • Object
show all
Defined in:
lib/hpricot_scrub/hpricot_scrub.rb

Instance Method Summary collapse

Instance Method Details

#stripObject



121
122
123
# File 'lib/hpricot_scrub/hpricot_scrub.rb', line 121

def strip
  each { |x| x.strip }
end

#strip_attributes(safe = []) ⇒ Object



125
126
127
# File 'lib/hpricot_scrub/hpricot_scrub.rb', line 125

def strip_attributes(safe=[])
  each { |x| x.scrub_attributes(safe) }
end