Method: FileWatch::SincedbValue#to_s
- Defined in:
- lib/filewatch/sincedb_value.rb
#to_s ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/filewatch/sincedb_value.rb', line 54 def to_s # consider serializing the watched_file state as well "#{position} #{last_changed_at}".tap do |s| if @watched_file.nil? s.concat(" ").concat(@path_in_sincedb) unless @path_in_sincedb.nil? else s.concat(" ").concat(@watched_file.path) end end end |