Class: FileType::Directory
Instance Attribute Summary
Attributes inherited from Generic
Class Method Summary collapse
Methods inherited from Generic
#+, extractable, #extractable?, extractable_dir, #extsplit, filetype_extension, inherited, #initialize, #installable?, #to_s
Constructor Details
This class inherits a constructor from FileType::Generic
Class Method Details
.match_type(path, max, best) ⇒ Object
301 302 303 304 305 306 |
# File 'lib/file_type.rb', line 301 def self.match_type ( path, max, best ) if path.exist? and path.directory? return [path.to_s.size, self] end return [max, best] end |