Class: REXML::Element

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

Instance Method Summary collapse

Instance Method Details

#remove_attributesObject

Remove all attributes from the element.

Returns:

  • the element.

See Also:



9
10
11
12
# File 'lib/sixarm_ruby_rexml/element.rb', line 9

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