Class Magic::Database
In: lib/magic/database.rb
Parent: Object

Methods

buffer   calculate_flags   close   error   file   flags=   load   new   open  

Attributes

flags  [R] 

Public Class methods

Creates an instance of +Magic::Database+ using given database file and flags

Public Instance methods

Determine type of given string

Closes the database

Returns the last error occured

Determine type of a file at given path

Sets the flags

Loads given database file (or default if nil given)

Opens magic db using given flags

Protected Instance methods

[Validate]