命名空間
- 類別 Mime::AllType
- 類別 Mime::Mimes
- 類別 Mime::NullType
- 類別 Mime::Type
方法
常數
全部 | = | AllType.instance |
|
||
EXTENSION_LOOKUP | = | {} |
查詢 | = | {} |
設定 | = | Mimes.new |
類別公開方法
[](type) 連結
來源:顯示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 51 def [](type) return type if type.is_a?(Type) Type.lookup_by_extension(type) end
取用(type, &區塊) 連結
來源:顯示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 64 def fetch(type, &block) return type if type.is_a?(Type) EXTENSION_LOOKUP.fetch(type.to_s, &block) end
符號() 連結
來源:顯示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 56 def symbols SET.symbols end