Class: Nokogiri::XML::Text

Inherits:
CharacterData
  • Object
show all
Defined in:
lib/nokogiri/ext/equality/text.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Boolean

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

Parameters:

Returns:

  • (Boolean)

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



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

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