class Hpricot::Elements
def remove_attr name
(doc/"input").remove_attr("disabled")
Remove an attribute from each of the matched elements.
def remove_attr name each do |el| next unless el.respond_to? :remove_attribute el.remove_attribute(name) end self end