Method: Mime::Type#===

Defined in:
lib/action_controller/mime_type.rb

#===(list) ⇒ Object



164
165
166
167
168
169
170
# File 'lib/action_controller/mime_type.rb', line 164

def ===(list)
  if list.is_a?(Array)
    (@synonyms + [ self ]).any? { |synonym| list.include?(synonym) }
  else
    super
  end
end