Class: Hpricot::Elem

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

Instance Method Summary collapse

Instance Method Details

#strip_attributesObject



147
148
149
150
151
152
153
# File 'lib/rfeedparser/scrub.rb', line 147

def strip_attributes
  unless attributes.nil?
    ra = {}
    raw_attributes.keys.each{|atr| ra[atr] = raw_attributes[atr] if Acceptable_Attributes.include?(atr) }
    self.raw_attributes = ra
  end
end