Class: Nokogiri::XML::NodeSet
Instance Method Summary collapse
Instance Method Details
#equivalent_to?(other) ⇒ Boolean
3 4 5 6 7 |
# File 'lib/nokogiri/node_set.rb', line 3 def equivalent_to?(other) return false if self.length != other.length 0.upto(self.length-1) { |i| return false if self[i].not_equivalent_to?( other[i] ) } return true end |
#not_equivalent_to?(other) ⇒ Boolean
9 10 11 |
# File 'lib/nokogiri/node_set.rb', line 9 def not_equivalent_to?(other) !equivalent_to?(other) end |