Class: MagicBytes::FileType
- Inherits:
-
Struct
- Object
- Struct
- MagicBytes::FileType
- Defined in:
- lib/magic_bytes.rb
Overview
Describes a file type with its file extension and MIME type
Instance Attribute Summary collapse
-
#ext ⇒ Object
Returns the value of attribute ext.
-
#mime ⇒ Object
Returns the value of attribute mime.
Instance Attribute Details
#ext ⇒ Object
Returns the value of attribute ext
12 13 14 |
# File 'lib/magic_bytes.rb', line 12 def ext @ext end |
#mime ⇒ Object
Returns the value of attribute mime
12 13 14 |
# File 'lib/magic_bytes.rb', line 12 def mime @mime end |