class Nokogiri::XML::Attr

Public Instance Methods

==(other) click to toggle source

Determines if the attribute is similar to another attribute.

@param [Nokogiri::XML::Attr] other

The other attribute.

@return [Boolean]

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

@api public

Calls superclass method
# File lib/nokogiri/ext/equality/attr.rb, line 19
def ==(other)
  super(other) && (self.value == other.value)
end