Class: Fingerprint::RecordSetPrinter
- Inherits:
-
RecordSetWrapper
- Object
- RecordSetWrapper
- Fingerprint::RecordSetPrinter
- Defined in:
- lib/fingerprint/record.rb
Instance Method Summary collapse
- #<<(record) ⇒ Object
-
#initialize(recordset, output) ⇒ RecordSetPrinter
constructor
A new instance of RecordSetPrinter.
Methods inherited from RecordSetWrapper
Constructor Details
#initialize(recordset, output) ⇒ RecordSetPrinter
Returns a new instance of RecordSetPrinter.
299 300 301 302 |
# File 'lib/fingerprint/record.rb', line 299 def initialize(recordset, output) super(recordset) @output = output end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Fingerprint::RecordSetWrapper
Instance Method Details
#<<(record) ⇒ Object
304 305 306 307 |
# File 'lib/fingerprint/record.rb', line 304 def <<(record) record.write(@output) @recordset << record if @recordset end |