Sha256: bc58ab5df24ed939abf2e10cf83738c5842c10353d866a167abdae9403de5354
Contents?: true
Size: 357 Bytes
Versions: 2
Compression:
Stored size: 357 Bytes
Contents
# frozen_string_literal: true module Ferver class FoundFile attr_reader :file_name, :path_to_file alias name file_name def initialize(directory, file_name) @file_name = file_name @path_to_file = File.join(directory, file_name) end def valid? File.file?(path_to_file) && !File.zero?(path_to_file) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ferver-1.4.0 | lib/ferver/found_file.rb |
ferver-1.3.1 | lib/ferver/found_file.rb |