Namespace
- CLASS Mime::AllType
- CLASS Mime::Mimes
- CLASS Mime::NullType
- CLASS Mime::Type
Methods
Constants
| ALL | = | AllType.instance |
|
||
| EXTENSION_LOOKUP | = | {} |
| LOOKUP | = | {} |
| SET | = | Mimes.new |
Class Public methods
[](type) Link
Source: show
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 49 def [](type) return type if type.is_a?(Type) Type.lookup_by_extension(type) end