Sha256: 00f212bcdb67560778ea2960248f50865c6b2c67e2e35fd3d91595acdc1aeca3
Contents?: true
Size: 484 Bytes
Versions: 7
Compression:
Stored size: 484 Bytes
Contents
const AbstractHandler = require("./AbstractHandler"); class CreateClassInstanceHandler extends AbstractHandler { process(command) { try { let clazz = command.payload[0] let methodArguments = command.payload.slice(1) return new clazz(...methodArguments) } catch (error) { return this.process_stack_trace(error, this.constructor.name) } } } module.exports = new CreateClassInstanceHandler()
Version data entries
7 entries across 7 versions & 1 rubygems