Class: Mime::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/mime_type_ext.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#synonymsObject (readonly)

Returns the value of attribute synonyms.



2
3
4
# File 'lib/mime_type_ext.rb', line 2

def synonyms
  @synonyms
end

Instance Method Details

#all_typesObject



4
5
6
# File 'lib/mime_type_ext.rb', line 4

def all_types
  ([self.to_s] + synonyms).uniq
end