Class: HTTP::MimeType::Adapter
- Inherits:
-
Object
- Object
- HTTP::MimeType::Adapter
- Extended by:
- Forwardable
- Includes:
- Singleton
- Defined in:
- lib/http/mime_type/adapter.rb
Overview
Base encode/decode MIME type adapter
Direct Known Subclasses
Instance Method Summary collapse
-
#decode ⇒ Object
Decodes data from the MIME type format.
-
#encode ⇒ String
Encodes data into the MIME type format.
Instance Method Details
#decode ⇒ Object
Decodes data from the MIME type format
38 39 40 |
# File 'lib/http/mime_type/adapter.rb', line 38 def decode(*) raise Error, "#{self.class} does not supports #decode" end |
#encode ⇒ String
Encodes data into the MIME type format
26 27 28 |
# File 'lib/http/mime_type/adapter.rb', line 26 def encode(*) raise Error, "#{self.class} does not supports #encode" end |