MonkJS
Getting started
bower install monkjs
How it works
Class
How to create a class
var Class = ; var instance1 = 'instance 1';instance1name; // => 'instance 1'
Class methods
Class extend method
Class; Class;
Include method: if you want to add a new method for all instances of the class
Class; instance1; // => 'instance 1'
Singleton methods
Extend method
instance1; instance1type; // => 'instance'
Watch method
instance1; instance1name = 'new name'; // => 'name has changed'
Unwatch method
instance1;
GetAttributes method
instance1; // => '[{"name": "instance 1"}]'
Decorator class
How use it
var TodoDecorator = ; var TodoClass = ; var instance2 = ;instance2; // => 'new task'
Policies functions
After method
Before method
List of functions
Extend method
Include method
Flip method
Contributing
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Added some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Licence
MIT