Method: Mime::Type#===

Defined in:
lib/dependency/mime_type.rb

#===(list) ⇒ Object



187
188
189
190
191
192
193
# File 'lib/dependency/mime_type.rb', line 187

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