Sha256: f09f06903f9567dba23a47b7c37e4dbf5db4993137c40e09119f7e4c2eddabec
Contents?: true
Size: 440 Bytes
Versions: 5
Compression:
Stored size: 440 Bytes
Contents
#! /usr/bin/ruby $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'filemagic' puts FileMagic.new.flags FileMagic.open(:mime) { |fm| puts fm.flags puts fm.file(__FILE__) fm.setflags(:raw, :continue) puts fm.flags } fm = FileMagic.new puts fm.flags mime = FileMagic.mime puts mime.flags ARGV.each { |file| puts fm.file(file) puts fm.file(file, true) puts mime.file(file) puts mime.file(file, true) }
Version data entries
5 entries across 5 versions & 2 rubygems