Method: File.mime

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

.mime(path) ⇒ Object

call-seq:

File.mime( string ) -> string or array

See also: File::magic and File::type



22
23
24
# File 'lib/magic/core/file.rb', line 22

def mime(path)
  magic(path, Magic::MIME)
end