Class: FactoryTrace::Writers::Writer
- Inherits:
-
Object
- Object
- FactoryTrace::Writers::Writer
- Defined in:
- lib/factory_trace/writers/writer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#io ⇒ Object
readonly
Returns the value of attribute io.
Instance Method Summary collapse
-
#initialize(io, configuration = Configuration.new) ⇒ Writer
constructor
A new instance of Writer.
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
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
6 7 8 |
# File 'lib/factory_trace/writers/writer.rb', line 6 def configuration @configuration end |
#io ⇒ Object (readonly)
Returns the value of attribute io.
6 7 8 |
# File 'lib/factory_trace/writers/writer.rb', line 6 def io @io end |