Thread
This class supervises activity on a tailed fail and collects newly read lines until the Tail::Group fetches and processes them.
Return the thread local variable id if it is defined.
# File lib/file/tail/tailer.rb, line 27 def method_missing(id, *args, &block) if args.empty? && !(value = self[id]).nil? value else super end end
Fetch all the pending lines from this Tailer and thereby remove them from the Tailer’s queue.
# File lib/file/tail/tailer.rb, line 14 def pending_lines Array.new(queue.size) { queue.deq(true) } end
True if there are any lines pending on this Tailer, false otherwise.
# File lib/file/tail/tailer.rb, line 8 def pending_lines? !queue.empty? end
Generated with the Darkfish Rdoc Generator 2.