Class: Tailstrom::Command::Print
- Inherits:
-
Object
- Object
- Tailstrom::Command::Print
- Defined in:
- lib/tailstrom/command/print.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Print
constructor
A new instance of Print.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Print
Returns a new instance of Print.
6 7 8 9 |
# File 'lib/tailstrom/command/print.rb', line 6 def initialize() @infile = $stdin @options = end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 |
# File 'lib/tailstrom/command/print.rb', line 11 def run reader = TailReader.new @infile, @options reader.each_line do |line| puts line[:line] end end |