0.0.1 • Published 7 years ago

ruined-sod v0.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

ruined-sod

A node package for allowing object dispatch based on attributes of the object.

Access the dispatcher by calling Sod(), for example:

var Sod = require("ruined-sod");
var dispatcher = Sod();

This will return the default dispatcher.

To create a new dispatcher, call the function with true as a parameter.

var dispatcher = Sod(true);

The following functions are available on the dispatcher by default.

Functions

  • clear
  • dispatch
  • add
  • findexact
  • debug
  • find
  • remove