| Class | File |
| In: |
lib/rdig/file.rb
|
| Parent: | Object |
Extend class File with a content_type method
| FILE_EXTENSION_MIME_TYPES | = | { 'doc' => 'application/msword', 'html' => 'text/html', 'htm' => 'text/html', #'.odt' => 'application/vnd.oasis.opendocument.text', 'pdf' => 'application/pdf', 'txt' => 'text/plain', } | mime types and file extensions |