class Treyja::Command::Json
Attributes
reader[R]
Public Class Methods
new(reader)
click to toggle source
# File lib/treyja/command/json.rb, line 6 def initialize reader @reader = reader end
Public Instance Methods
run()
click to toggle source
# File lib/treyja/command/json.rb, line 10 def run reader.each do |ts| puts ts.to_json STDOUT.flush end end