Class: FactoryTrace::Writers::TraceWriter

Inherits:
Writer
  • Object
show all
Defined in:
lib/factory_trace/writers/trace_writer.rb

Instance Attribute Summary

Attributes inherited from Writer

#configuration, #io

Instance Method Summary collapse

Methods inherited from Writer

#initialize

Constructor Details

This class inherits a constructor from FactoryTrace::Writers::Writer

Instance Method Details

#write(defined, used) ⇒ Object



8
9
10
# File 'lib/factory_trace/writers/trace_writer.rb', line 8

def write(defined, used)
  io.puts(JSON.pretty_generate(defined: defined.to_h, used: used.to_h))
end