Class: FileType::Directory

Inherits:
Generic show all
Defined in:
lib/file_type.rb

Instance Attribute Summary

Attributes inherited from Generic

#base, #ext, #path

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