Class: MagicBytes::FileType

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

Overview

Describes a file type with its file extension and MIME type

Instance Attribute Summary collapse

Instance Attribute Details

#extObject

Returns the value of attribute ext

Returns:

  • (Object)

    the current value of ext



12
13
14
# File 'lib/magic_bytes.rb', line 12

def ext
  @ext
end

#mimeObject

Returns the value of attribute mime

Returns:

  • (Object)

    the current value of mime



12
13
14
# File 'lib/magic_bytes.rb', line 12

def mime
  @mime
end