Class: Rerun::Watcher::FoundFile
- Inherits:
-
Object
- Object
- Rerun::Watcher::FoundFile
- Defined in:
- lib/watcher.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#mod_time ⇒ Object
readonly
Returns the value of attribute mod_time.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(file_name, mod_time, size) ⇒ FoundFile
constructor
A new instance of FoundFile.
- #modified(mod_time) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(file_name, mod_time, size) ⇒ FoundFile
Returns a new instance of FoundFile.
182 183 184 |
# File 'lib/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_name ⇒ Object (readonly)
Returns the value of attribute file_name.
180 181 182 |
# File 'lib/watcher.rb', line 180 def file_name @file_name end |
#mod_time ⇒ Object (readonly)
Returns the value of attribute mod_time.
180 181 182 |
# File 'lib/watcher.rb', line 180 def mod_time @mod_time end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
180 181 182 |
# File 'lib/watcher.rb', line 180 def size @size end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
180 181 182 |
# File 'lib/watcher.rb', line 180 def status @status end |
Instance Method Details
#modified(mod_time) ⇒ Object
186 187 188 |
# File 'lib/watcher.rb', line 186 def modified(mod_time) @mod_time = mod_time end |
#to_s ⇒ Object
190 191 192 |
# File 'lib/watcher.rb', line 190 def to_s "FoundFile[file_name=#{file_name}, mod_time=#{mod_time.to_i}, size=#{size}]" end |