Class: Mime::Type
- Inherits:
-
Object
- Object
- Mime::Type
- Defined in:
- lib/mime_type_ext.rb
Instance Attribute Summary collapse
-
#synonyms ⇒ Object
readonly
Returns the value of attribute synonyms.
Instance Method Summary collapse
Instance Attribute Details
#synonyms ⇒ Object (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_types ⇒ Object
4 5 6 |
# File 'lib/mime_type_ext.rb', line 4 def all_types ([self.to_s] + synonyms).uniq end |