module NokogiriTools::Data

Public Instance Methods

remove_data_attributes() click to toggle source
# File lib/nokogiri-tools.rb, line 39
def remove_data_attributes
  attributes.keys.each { |name| delete(name) if name.start_with?('data-') }
end