Sha256: 2e9a7c00b1dc43d132e349704dbced55947d63c8459d406a26fd3dbd1d9f4216

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

require 'nokogiri'

module Nokogiri
  module XML
    class Attr < Node

      #
      # 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
      #
      def ==(other)
        super(other) && (self.value == other.value)
      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/attr.rb