Class: Treyja::Command::Dump

Inherits:
Object
  • Object
show all
Defined in:
lib/treyja/command/dump.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reader) ⇒ Dump

Returns a new instance of Dump.



6
7
8
# File 'lib/treyja/command/dump.rb', line 6

def initialize reader
  @reader = reader
end

Instance Attribute Details

#readerObject (readonly)

Returns the value of attribute reader.



4
5
6
# File 'lib/treyja/command/dump.rb', line 4

def reader
  @reader
end

Instance Method Details

#runObject



10
11
12
13
14
15
# File 'lib/treyja/command/dump.rb', line 10

def run
  reader.each do |ts|
    p ts
    STDOUT.flush
  end
end