Class: Nokogiri::XML::Text
- Inherits:
-
CharacterData
- Object
- CharacterData
- Nokogiri::XML::Text
- Defined in:
- lib/nokogiri/ext/equality/text.rb
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Determines if the text node is similar to another text node.
Instance Method Details
#==(other) ⇒ Boolean
Determines if the text node is similar to another text node.
21 22 23 |
# File 'lib/nokogiri/ext/equality/text.rb', line 21 def ==(other) super(other) && (self.content == other.content) end |