Method: FileWatch::SincedbValue#increment_position

Defined in:
lib/filewatch/sincedb_value.rb

#increment_position(pos) ⇒ Object



37
38
39
40
41
42
43
# File 'lib/filewatch/sincedb_value.rb', line 37

def increment_position(pos)
  # called when actual lines are sent to the observer listener
  # this gets serialized as its a more true indication of position than
  # chunk read size
  touch
  @position += pos
end