2018-01-07 09:24:32 +01:00
|
|
|
'use strict';
|
2017-12-18 20:39:51 +01:00
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-01-07 16:18:58 +01:00
|
|
|
write( buffer = false ) {
|
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;
|