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