Method: FileWatch::SincedbValue#initialize
- Defined in:
- lib/filewatch/sincedb_value.rb
#initialize(position, last_changed_at = nil, watched_file = nil) ⇒ SincedbValue
Returns a new instance of SincedbValue.
14 15 16 17 18 19 |
# File 'lib/filewatch/sincedb_value.rb', line 14 def initialize(position, last_changed_at = nil, watched_file = nil) @position = position # this is the value read from disk @last_changed_at = last_changed_at @watched_file = watched_file touch if @last_changed_at.nil? || @last_changed_at.zero? end |