Class: Libis::Format::Tool::ExtensionIdentification

Inherits:
IdentificationTool show all
Defined in:
lib/libis/format/tool/extension_identification.rb

Instance Method Summary collapse

Methods inherited from IdentificationTool

bad_mimetype, run, run_dir, run_list

Instance Method Details

#run(file, _options) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/libis/format/tool/extension_identification.rb', line 27

def run(file, _options)

  output = runner(file)

  process_output(output)

end

#run_dir(dir, recursive = true, _options = {}) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/libis/format/tool/extension_identification.rb', line 17

def run_dir(dir, recursive = true, _options = {})

  filelist = find_files(dir, recursive)

  output = runner(nil, filelist)

  process_output(output)

end

#run_list(filelist, _options = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/libis/format/tool/extension_identification.rb', line 9

def run_list(filelist, _options = {})

  output = runner(nil, filelist)

  process_output(output)

end