Parent

Methods

Included Modules

File

Public Class Methods

file_type(file, *flags) click to toggle source
# File lib/filemagic/ext.rb, line 62
def self.file_type(file, *flags)
  FileMagic.fm(*flags).file(file.respond_to?(:path) ? file.path : file)
rescue FileMagic::FileMagicError
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.