Method: File.type

Defined in:
lib/magic/core/file.rb

.type(path) ⇒ Object

call-seq:

File.type( string ) -> string or array

See also: File::magic and File::mime



32
33
34
# File 'lib/magic/core/file.rb', line 32

def type(path)
  magic(path, Magic::MIME_TYPE)
end