Sha256: 3e568ec7aefa7d827725e44b580af39ae9ea6794004ecdb606f7588b442bc4b2

Contents?: true

Size: 551 Bytes

Versions: 1

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

require 'nokogiri'

module Nokogiri
  module XML
    class Text < CharacterData

      #
      # 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
      #
      def ==(other)
        super(other) && (self.content == other.content)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nokogiri-ext-0.1.1 lib/nokogiri/ext/equality/text.rb