class Fontist::Import::Files::FileRequirement
Public Class Methods
new()
click to toggle source
# File lib/fontist/import/files/file_requirement.rb, line 5 def initialize `file -v` rescue Errno::ENOENT abort "`file` is not available. (Or is PATH not setup properly?)" end
Public Instance Methods
call(path)
click to toggle source
# File lib/fontist/import/files/file_requirement.rb, line 11 def call(path) Helpers::SystemHelper.run("file --brief '#{path}'") end