module FileMagic::Ext::ClassMethods

Public Instance Methods

content_type(file, *flags) click to toggle source
# File lib/filemagic/ext.rb, line 28
def content_type(file, *flags)
  mime_type(file, *flags << { simplified: true })
end
file(file, *flags) click to toggle source
# File lib/filemagic/ext.rb, line 18
def file(file, *flags)
  file_type(file, *flags)
end
file_type(file, *flags) click to toggle source
# File lib/filemagic/ext.rb, line 14
def file_type(file, *flags)
  raise NotImplementedError, 'must be implemented by including class'
end
mime(file, *flags)
Alias for: mime_type
mime_type(file, *flags) click to toggle source
# File lib/filemagic/ext.rb, line 22
def mime_type(file, *flags)
  file_type(file, *flags.unshift(:mime))
end
Also aliased as: mime