File: line_extension.rb

package info (click to toggle)
ruby-file-tail 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 188 kB
  • sloc: ruby: 887; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class File
  module Tail
    # This module is used to extend all lines received via one of the tailers
    # of a File::Tail::Group.
    module LineExtension
      # The file as a File instance this line was read from.
      def file
        tailer.file
      end

      # This is the tailer this line was received from.
      attr_reader :tailer
    end
  end
end