Method: Mime::Type#==
- Defined in:
- lib/dependency/mime_type.rb
#==(mime_type) ⇒ Object
195 196 197 198 199 200 |
# File 'lib/dependency/mime_type.rb', line 195 def ==(mime_type) return false if mime_type.blank? (@synonyms + [ self ]).any? do |synonym| synonym.to_s == mime_type.to_s || synonym.to_sym == mime_type.to_sym end end |