Sha256: 19e0bfe39ad8614b86b00be49eec9a865cdf399612b0d44cf7130e365e737a76

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

require 'hpricot'

module Hpricot
  class Comment

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

      return content == other.content
    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/comment.rb
ronin-0.1.3 lib/ronin/web/extensions/hpricot/comment.rb