class Ferver::FoundFile
Attributes
file_name[R]
name[R]
path_to_file[R]
Public Class Methods
new(directory, file_name)
click to toggle source
# File lib/ferver/found_file.rb, line 8 def initialize(directory, file_name) @file_name = file_name @path_to_file = File.join(directory, file_name) end
Public Instance Methods
valid?()
click to toggle source
# File lib/ferver/found_file.rb, line 13 def valid? File.file?(path_to_file) && !File.zero?(path_to_file) end