Class: REXML::Element

Inherits:
Object show all
Defined in:
lib/webget_ramp/xml.rb

Instance Method Summary collapse

Instance Method Details

#remove_attributesObject

Remove all attributes from the element.

Return the element.

cf. Document#remove_attributes



177
178
179
180
# File 'lib/webget_ramp/xml.rb', line 177

def remove_attributes
  self.attributes.each_attribute{|attribute| attribute.remove }
  self
end