Class: HTTP::MimeType::Adapter
- Inherits:
-
Object
- Object
- HTTP::MimeType::Adapter
- Extended by:
- Forwardable
- Includes:
- Singleton
- Defined in:
- lib/http/mime_type/adapter.rb,
sig/http.rbs
Overview
Base encode/decode MIME type adapter
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#decode ⇒ Object
Decodes data from the MIME type format.
-
#encode ⇒ String
Encodes data into the MIME type format.
Class Method Details
.decode ⇒ Object
594 |
# File 'sig/http.rbs', line 594
def self.decode: (String) -> untyped
|
.encode ⇒ String
593 |
# File 'sig/http.rbs', line 593
def self.encode: (untyped) -> String
|
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 |