Class: MultiMime::Adapter
- Inherits:
-
Object
- Object
- MultiMime::Adapter
show all
- Includes:
- Singleton
- Defined in:
- lib/multi_mime/adapter.rb
Class Method Summary
collapse
Class Method Details
.type_for(mime_type, opts = {}) ⇒ Object
8
9
10
|
# File 'lib/multi_mime/adapter.rb', line 8
def type_for(mime_type, opts = {})
instance.type_for(mime_type, opts)
end
|
.type_for_extension(extension, opts = {}) ⇒ Object
12
13
14
|
# File 'lib/multi_mime/adapter.rb', line 12
def type_for_extension(extension, opts = {})
instance.type_for_extension(extension, opts)
end
|
.type_for_file(file, opts = {}) ⇒ Object
20
21
22
|
# File 'lib/multi_mime/adapter.rb', line 20
def type_for_file(file, opts = {})
instance.type_for_file(file, opts)
end
|
.type_for_path(path, opts = {}) ⇒ Object
16
17
18
|
# File 'lib/multi_mime/adapter.rb', line 16
def type_for_path(path, opts = {})
instance.type_for_path(path, opts)
end
|