Method: MIME::Type#to_str

Defined in:
lib/mime/type.rb

#to_strObject

Returns the MIME::Type as a string for implicit conversions. This allows MIME::Type objects to appear on either side of a comparison.

"text/plain" == MIME::Type.new("content-type" => "text/plain")


539
540
541
# File 'lib/mime/type.rb', line 539

def to_str
  content_type
end