Class: Treyja::Command::Dump
- Inherits:
-
Object
- Object
- Treyja::Command::Dump
- Defined in:
- lib/treyja/command/dump.rb
Instance Attribute Summary collapse
-
#reader ⇒ Object
readonly
Returns the value of attribute reader.
Instance Method Summary collapse
-
#initialize(reader) ⇒ Dump
constructor
A new instance of Dump.
- #run ⇒ Object
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
#reader ⇒ Object (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
#run ⇒ Object
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 |