class Thoth::Output::Json
Public Class Methods
new(io)
click to toggle source
# File lib/thoth/output/json.rb, line 5 def initialize(io) @io = io end
Public Instance Methods
write(hash)
click to toggle source
# File lib/thoth/output/json.rb, line 9 def write(hash) @io.write("#{JSON.dump(hash)}\n") end