2017-12-18 20:39:51 +01:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
let { Driver } = require( './driver' );
|
|
|
|
|
|
|
|
class Dummy extends Driver {
|
|
|
|
constructor() {
|
|
|
|
super();
|
2018-01-05 21:36:06 +01:00
|
|
|
|
|
|
|
this.silence = false;
|
2017-12-18 20:39:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
write( buffer ) {
|
2018-01-05 21:36:06 +01:00
|
|
|
if ( this.silence !== true ) {
|
|
|
|
console.log( buffer );
|
|
|
|
}
|
2017-12-18 20:39:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.Dummy = Dummy;
|