Sha256: 4611201c1723c7aae27d3a4b27d36308ec70423000a0039339fd1bf7495c28a4
Contents?: true
Size: 620 Bytes
Versions: 7
Compression:
Stored size: 620 Bytes
Contents
const AbstractHandler = require("./AbstractHandler"); class InvokeInstanceMethodHandler extends AbstractHandler { constructor() { super() } process(command) { try { const {payload} = command let instance = payload[0] let methodName = payload[1] let args = payload.slice(2) return Reflect.apply(instance[methodName], undefined, args) } catch (error){ return this.process_stack_trace(error, this.constructor.name) } } } module.exports = new InvokeInstanceMethodHandler()
Version data entries
7 entries across 7 versions & 1 rubygems