class String

Public Class Methods

file_type(string, *flags) click to toggle source
# File lib/filemagic/ext.rb, line 71
def self.file_type(string, *flags)
  FileMagic.fm(*flags).buffer(string)
rescue FileMagic::FileMagicError
end