Class: FactoryTrace::Writers::TraceWriter
- Defined in:
- lib/factory_trace/writers/trace_writer.rb
Instance Attribute Summary
Attributes inherited from Writer
Instance Method Summary collapse
Methods inherited from Writer
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 |