Sha256: 30f7f4cd92cf7a1ea5dfdc2a631670893277ead49e644a5dd2b37b0ab20582c1

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

require 'hpricot'

module Hpricot
  module Tag

    #
    # Returns +true+ if the tag has the same name as the _other_ tag,
    # returns +false+ otherwise.
    #
    def eql?(other)
      return false unless self.class == other.class

      return self.name == other.name
    end

    alias == eql?

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-0.1.2 lib/ronin/web/extensions/hpricot/tag.rb
ronin-0.1.3 lib/ronin/web/extensions/hpricot/tag.rb