Method: Mime::Type#method_missing

Defined in:
lib/action_controller/mime_type.rb

#method_missing(method, *args) ⇒ Object (private)



202
203
204
205
206
207
208
# File 'lib/action_controller/mime_type.rb', line 202

def method_missing(method, *args)
  if method.to_s =~ /(\w+)\?$/
    $1.downcase.to_sym == to_sym
  else
    super
  end
end