Exception: MIME::Type::InvalidEncoding

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

Overview

Reflects an unsupported MIME encoding.

Instance Method Summary collapse

Constructor Details

#initialize(encoding) ⇒ InvalidEncoding

:stopdoc:


48
49
50
# File 'lib/mime/type.rb', line 48

def initialize(encoding)
  @encoding = encoding
end

Instance Method Details

#to_sObject


52
53
54
55
# File 'lib/mime/type.rb', line 52

def to_s
  "Invalid Encoding #{@encoding.inspect} (valid values are " +
    "#{MIME::Type::VALID_ENCODINGS.inspect})."
end