Exception: MIME::Type::InvalidContentType

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/mime/type.rb

Overview

Reflects a MIME content-type specification that is not correctly formatted (it isn't type/subtype).

Instance Method Summary collapse

Constructor Details

#initialize(type_string) ⇒ InvalidContentType

:stopdoc:


35
36
37
# File 'lib/mime/type.rb', line 35

def initialize(type_string)
  @type_string = type_string
end

Instance Method Details

#to_sObject


39
40
41
# File 'lib/mime/type.rb', line 39

def to_s
  "Invalid Content-Type #{@type_string.inspect}"
end