Base

Server.Modules.Core. Base

# new Base()

This is the Base Class from the Core module. It is the ultimate parent class from which all others (Core, Module and Interface) inherit. It combines a flexible event emitter (with wildcard and pattern listening capabilities) with the Augment class inheritance library, RxJS for Reactive Programming and Day.JS for Date/Time Management.

Author:
  • Darren Smith
License:
  • Licensed under the LGPL license.
Example
const Hello = new core.Base().extend({
  constructor: function HelloConstructor(name) {
    this.name = name;
  },
  hello: function HelloHello() {
    console.log('Hello, ' + this.name + '!');
  }
});