Class: Mime::Type

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/base_controller.rb

Class Method Summary collapse

Class Method Details

.lookup(string) ⇒ Object



5
6
7
# File 'app/controllers/base_controller.rb', line 5

def lookup(string)
  LOOKUP[string.split(';').first]
end