Class: REXML::Element
Instance Method Summary collapse
-
#remove_attributes ⇒ Object
Remove all attributes from the element.
Instance Method Details
#remove_attributes ⇒ Object
Remove all attributes from the element.
Return the element.
cf. Document#remove_attributes
177 178 179 180 |
# File 'lib/webget_ramp/xml.rb', line 177 def remove_attributes self.attributes.each_attribute{|attribute| attribute.remove } self end |