Class: REXML::Document
- Inherits:
-
Object
- Object
- REXML::Document
- Defined in:
- lib/sixarm_ruby_rexml/document.rb
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.
9 10 11 12 |
# 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 |