Sha256: 0343c38525d74954660d59622a58b34a786bdcbf40aae3fa4fa93860451b3013

Contents?: true

Size: 248 Bytes

Versions: 2

Compression:

Stored size: 248 Bytes

Contents

require_relative 'path_assay'

# Assert the existance of a file with `File.file?` call.
#
class FileAssay < PathAssay

  register :file

  #
  # Check assertion using `File.file?` method.
  #
  def self.pass?(path)
    File.file?(path)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
assay-0.4.1 lib/assay/file_assay.rb
assay-0.4.0 lib/assay/file_assay.rb