Class: Rubai::MimeType
- Inherits:
-
Object
- Object
- Rubai::MimeType
- Defined in:
- lib/rubai/mime_type.rb
Class Method Summary collapse
Instance Method Summary collapse
- #content_type ⇒ Object
-
#initialize(type) ⇒ MimeType
constructor
A new instance of MimeType.
- #to_s ⇒ Object
Constructor Details
Class Method Details
.new_with_extension(extension) ⇒ Object
8 9 10 |
# File 'lib/rubai/mime_type.rb', line 8 def self.new_with_extension(extension) new(extension.to_sym) end |
Instance Method Details
#content_type ⇒ Object
12 13 14 |
# File 'lib/rubai/mime_type.rb', line 12 def content_type @content_type end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/rubai/mime_type.rb', line 16 def to_s content_type end |