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.
- clear
- dispatch
- add
- findexact
- debug
- find
- remove
- Change to prototype-based system
- Add default() method on module to return the default instance
- Documentation
- Get browser support working
- Allow calling via
new