class REXML::Document
Public Instance Methods
remove_attributes()
click to toggle source
Remove all attributes from the document’s elements.
@return the document.
@see Element#remove_attributes
# File lib/sixarm_ruby_rexml/document.rb, line 9 def remove_attributes self.elements.each("//") { |elem| elem.attributes.each_attribute{|attribute| attribute.remove }} self end