Class: FactoryTrace::Writers::Writer

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

Direct Known Subclasses

ReportWriter, TraceWriter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(io, configuration = Configuration.new) ⇒ Writer

Returns a new instance of Writer.



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

def initialize(io, configuration = Configuration.new)
  @io = io
  @configuration = configuration
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



6
7
8
# File 'lib/factory_trace/writers/writer.rb', line 6

def configuration
  @configuration
end

#ioObject (readonly)

Returns the value of attribute io.



6
7
8
# File 'lib/factory_trace/writers/writer.rb', line 6

def io
  @io
end