Module: IO::Tail::LineExtension

Defined in:
lib/io/tail/line_extension.rb

Overview

This module is used to extend all lines received via one of the tailers of a File::Tail::Group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tailerObject (readonly)

This is the tailer this line was received from.



12
13
14
# File 'lib/io/tail/line_extension.rb', line 12

def tailer
  @tailer
end

Instance Method Details

#fileObject

The file as a File instance this line was read from.



7
8
9
# File 'lib/io/tail/line_extension.rb', line 7

def file
  tailer.file
end