Class File::Tail::Group
In: lib/file/tail/group.rb
lib/file/tail/group.rb
Parent: Object

This class can be used to coordinate tailing of many files, which have been added to the group.

Methods

<<   <<   []   []   add   add   add_file   add_file   add_filename   add_filename   each_file   each_file   each_tailer   each_tailer   new   new   stop   stop   tail   tail  

Public Class methods

Creates a group for files (IO instances or filename strings).

Creates a group for files (IO instances or filename strings).

Creates a new File::Tail::Group instance.

The following options can be given as arguments:

:files:an array of files (or filenames to open) that are placed into the group.

Creates a new File::Tail::Group instance.

The following options can be given as arguments:

:files:an array of files (or filenames to open) that are placed into the group.

Public Instance methods

<<(file_or_filename)

Alias for add

<<(file_or_filename)

Alias for add

Add a file (IO instance) or filename (responding to to_str) to this group.

Add a file (IO instance) or filename (responding to to_str) to this group.

Add the IO instance file to this group.

Add the IO instance file to this group.

Add a file created by opening filename to this group after stepping n lines backwards from the end of it.

Add a file created by opening filename to this group after stepping n lines backwards from the end of it.

Iterate over all files contained in this group yielding to block for each of them.

Iterate over all files contained in this group yielding to block for each of them.

Iterate over all tailers in this group yielding to block for each of them.

Iterate over all tailers in this group yielding to block for each of them.

Stop all tailers in this group at once.

Stop all tailers in this group at once.

Tail all the lines of all the files in the Tail::Group instance, that is yield to each of them.

Every line is extended with the LineExtension module, that adds some methods to the line string. To get the path of the file this line was received from call line.file.path.

Tail all the lines of all the files in the Tail::Group instance, that is yield to each of them.

Every line is extended with the LineExtension module, that adds some methods to the line string. To get the path of the file this line was received from call line.file.path.

[Validate]