struct Tail::File
- Tail::File
- Struct
- Value
- Object
Defined in:
tail.crConstructors
Instance Method Summary
- #file : ::File
-
#follow(lines = 0, line_size = 1024, delay = 0.1, &)
Follow the end of a file
-
#last_lines(lines = 10, line_size = 1024) : Array(String)
Get the last n
lines
.
Constructor Detail
Instance Method Detail
Get the last n lines
.
line_size
is used to extract the end of the file to calculate the trailing lines