Class: Nokogiri::XML::Attr

Inherits:
Node
  • Object
show all
Defined in:
lib/nokogiri/ext/equality/attr.rb

Instance Method Summary collapse

Methods inherited from Node

#traverse_count, #traverse_text

Instance Method Details

#==(other) ⇒ Boolean

Determines if the attribute is similar to another attribute.

Parameters:

Returns:

  • (Boolean)

    Specifies if the attribute is similar, in identity or value, to the other attribute.



21
22
23
# File 'lib/nokogiri/ext/equality/attr.rb', line 21

def ==(other)
  super(other) && (self.value == other.value)
end