Sha256: 2b0149763b25f6125295d6417867f8b414692ab6b8097cc648d9b9b734d90ad8
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
require_relative 'path_assay' # Assert the existance of a directory with `File.directory?` call. # class DirectoryAssay < PathAssay register :directory # # Check assertion using `File.file?` method. # def self.pass?(path) File.directory?(path) end end # I would prefer this name. #FolderAssay = DirectoryAssay
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
assay-0.4.1 | lib/assay/directory_assay.rb |
assay-0.4.0 | lib/assay/directory_assay.rb |