Method: MIME::Type#eql?

Defined in:
lib/mime/type.rb

#eql?(other) ⇒ Boolean

Returns true if the other object is a MIME::Type and the content types match.

Returns:

  • (Boolean)


240
241
242
# File 'lib/mime/type.rb', line 240

def eql?(other)
  other.is_a?(MIME::Type) && (self == other)
end