Class: Rerun::Watcher::FoundFile

Inherits:
Object
  • Object
show all
Defined in:
lib/rerun/watcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_name, mod_time, size) ⇒ FoundFile

Returns a new instance of FoundFile.



182
183
184
# File 'lib/rerun/watcher.rb', line 182

def initialize(file_name, mod_time, size)
  @file_name, @mod_time, @size = file_name, mod_time, size
end

Instance Attribute Details

#file_nameObject (readonly)

Returns the value of attribute file_name.



180
181
182
# File 'lib/rerun/watcher.rb', line 180

def file_name
  @file_name
end

#mod_timeObject (readonly)

Returns the value of attribute mod_time.



180
181
182
# File 'lib/rerun/watcher.rb', line 180

def mod_time
  @mod_time
end

#sizeObject (readonly)

Returns the value of attribute size.



180
181
182
# File 'lib/rerun/watcher.rb', line 180

def size
  @size
end

#statusObject (readonly)

Returns the value of attribute status.



180
181
182
# File 'lib/rerun/watcher.rb', line 180

def status
  @status
end

Instance Method Details

#modified(mod_time) ⇒ Object



186
187
188
# File 'lib/rerun/watcher.rb', line 186

def modified(mod_time)
  @mod_time = mod_time
end

#to_sObject



190
191
192
# File 'lib/rerun/watcher.rb', line 190

def to_s
  "FoundFile[file_name=#{file_name}, mod_time=#{mod_time.to_i}, size=#{size}]"
end