Class: Fingerprint::RecordSetPrinter

Inherits:
RecordSetWrapper show all
Defined in:
lib/fingerprint/record.rb

Instance Method Summary collapse

Methods inherited from RecordSetWrapper

#method_missing, #respond_to?

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