class Nokogiri::XML::Text

Public Instance Methods

==(other) click to toggle source

Determines if the text node is similar to another text node.

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

The other text node.

@return [Boolean]

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

@api public

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