Class: REXML::Element

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

Overview

REXML::Element extensions

Instance Method Summary collapse

Instance Method Details

#remove_attributesObject

Remove all attributes from the element.

Return the element.

cf. Document#remove_attributes



187
188
189
190
# File 'lib/webget_ruby_ramp/xml.rb', line 187

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