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, &block : String -> _)
Follow the end of a file
-
#last_lines(lines = 10, line_size = 1024) : Array(String)
Get the last n
lines
. -
#watch(lines = 0, line_size = 1024, &block : String -> _)
Use Inotify to yield newly added bytes from the file
Constructor Detail
Instance Method Detail
Follow the end of a file
Get the last n lines
.
line_size
is used to extract the end of the file, and then calculate the trailing lines
Use Inotify to yield newly added bytes from the file