Ruby FFI wrapper to the “magic” library, that determines content type and encoding of files and strings. The library does three types of tests: filesystem tests, magic number tests, and language tests. The first test that succeeds causes the file type to be returned.
Installation and Usage
See project page for details.
Copyright © 2010 Jakub Kuźma. See LICENSE for details.