Method: Clarity::Mime.for
- Defined in:
- lib/clarity/server/mime_types.rb
.for(filename) ⇒ Object
3 4 5 6 7 |
# File 'lib/clarity/server/mime_types.rb', line 3 def self.for(filename) content_type = TYPES[File.extname(filename)] content_type || 'text/plain' end |