module

Magic

Constants

VERSION = "0.1.0"

Instance methods

filetype

Get the filetype of the given File object, filepath, file descriptor, or byte stream (IO) as a plain, human-readable string.

Source
mime_type

Get the mime-type of the given File object, filepath, file descriptor, or byte stream (IO). This is the easiest to use if you're comparing the filetypes of several files.

Source

Nested types