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.
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. |
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.
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.