X7ROOT File Manager
Current Path:
/opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/Mime
opt
/
alt
/
ruby18
/
lib64
/
ruby
/
gems
/
1.8
/
doc
/
rack-1.6.1
/
ri
/
Rack
/
Mime
/
📁
..
📄
cdesc-Mime.yaml
(32.62 KB)
📄
match%3f-i.yaml
(542 B)
📄
mime_type-i.yaml
(915 B)
Editing: mime_type-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns String with mime type if found, otherwise use <tt>fallback</tt>. <tt>ext</tt> should be filename extension in the '.ext' format that - !ruby/struct:SM::Flow::VERB body: " File.extname(file) returns.\n" - !ruby/struct:SM::Flow::P body: <tt>fallback</tt> may be any object - !ruby/struct:SM::Flow::P body: Also see the documentation for MIME_TYPES - !ruby/struct:SM::Flow::P body: "Usage:" - !ruby/struct:SM::Flow::VERB body: " Rack::Mime.mime_type('.foo')\n" - !ruby/struct:SM::Flow::P body: "This is a shortcut for:" - !ruby/struct:SM::Flow::VERB body: " Rack::Mime::MIME_TYPES.fetch('.foo', 'application/octet-stream')\n" full_name: Rack::Mime#mime_type is_singleton: false name: mime_type params: (ext, fallback='application/octet-stream') visibility: public
Upload File
Create Folder