23 lines
321 B
JavaScript
23 lines
321 B
JavaScript
'use strict'
|
|
|
|
// **********************************
|
|
|
|
const
|
|
Something = require('apackagemodule')
|
|
|
|
class aClass extends Something {
|
|
constructor(opts = {}) {
|
|
super()
|
|
this.id = opts.id // must be unique within a bus
|
|
this.desc = opts.desc
|
|
|
|
}
|
|
|
|
hello(what) { return 'Hello ' + what }
|
|
|
|
}
|
|
|
|
module.exports = {
|
|
aClass
|
|
}
|