Class: MimeTable::MimeType
- Inherits:
-
Object
- Object
- MimeTable::MimeType
- Defined in:
- lib/mime_table.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#extension ⇒ Object
readonly
Returns the value of attribute extension.
Instance Method Summary collapse
-
#initialize(options) ⇒ MimeType
constructor
A new instance of MimeType.
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ MimeType
Returns a new instance of MimeType.
26 27 28 29 |
# File 'lib/mime_table.rb', line 26 def initialize() @content_type = [:content_type] @extension = [:extension] end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
24 25 26 |
# File 'lib/mime_table.rb', line 24 def content_type @content_type end |
#extension ⇒ Object (readonly)
Returns the value of attribute extension.
24 25 26 |
# File 'lib/mime_table.rb', line 24 def extension @extension end |
Instance Method Details
#to_s ⇒ Object
31 32 33 |
# File 'lib/mime_table.rb', line 31 def to_s @content_type.to_s end |