Class: Hpricot::Elem

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

Instance Method Summary collapse

Instance Method Details

#strip_attributesObject



149
150
151
152
153
154
155
156
157
# File 'lib/rfeedparser/scrub.rb', line 149

def strip_attributes
  unless attributes.nil?
	attributes.each do |atr|
	  unless Acceptable_Attributes.include?atr[0] 
 remove_attribute(atr[0]) 
	  end
	end
  end
end