Sha256: 90a070827588c145af9541b41e90a9723930bd36f312144868ba83b1264b4bd5
Contents?: true
Size: 337 Bytes
Versions: 1
Compression:
Stored size: 337 Bytes
Contents
module Ferver class FoundFile attr_reader :file_name, :path_to_file alias_method :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ferver-1.3.0 | lib/ferver/found_file.rb |