Sha256: 4426c14f0c3389a2685777d792a22426605dce91f184f5993f02d835fa9ba39e
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
require 'nokogiri/xml/element' module Nokogiri module XML class Element < Node def similar?(other) return false unless super(other) return false unless attribute_nodes.length == other.attribute_nodes.length (0...attribute_nodes.length).each do |index| attr1 = attribute_nodes[index] attr2 = other.attribute_nodes[index] return false unless attr1.similar?(attr2) end true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-web-0.1.0 | lib/ronin/web/extensions/nokogiri/xml/element.rb |