Class: REXML::Document
Overview
REXML::Document extensions
Instance Method Summary collapse
-
#remove_attributes ⇒ Object
Remove all attributes from the document’s elements.
Instance Method Details
#remove_attributes ⇒ Object
Remove all attributes from the document’s elements.
179 180 181 182 |
# File 'lib/webget_ruby_ramp/xml.rb', line 179 def remove_attributes self.elements.each("//") { |elem| elem.attributes.each_attribute{|attribute| attribute.remove }} self end |