Module: Mime

Defined in:
lib/crystal/support/mime.rb

Class Method Summary collapse

Class Method Details

.[](type) ⇒ Object



7
8
9
# File 'lib/crystal/support/mime.rb', line 7

def [] type
  Rack::Mime.mime_type(".#{type}") || raise("Unknown MIME type: #{type}")
end

.method_missing(m) ⇒ Object



3
4
5
# File 'lib/crystal/support/mime.rb', line 3

def method_missing m
  self[m]
end