Exception: MIME::Type::InvalidContentType
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- MIME::Type::InvalidContentType
- 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
-
#initialize(type_string) ⇒ InvalidContentType
constructor
:stopdoc:.
- #to_s ⇒ Object
Constructor Details
#initialize(type_string) ⇒ InvalidContentType
:stopdoc:
34 35 36 |
# File 'lib/mime/type.rb', line 34 def initialize(type_string) @type_string = type_string end |
Instance Method Details
#to_s ⇒ Object
38 39 40 |
# File 'lib/mime/type.rb', line 38 def to_s "Invalid Content-Type #{@type_string.inspect}" end |