methood

this is how i go about my business.

methood

create methods the bad way.

var methood = require('methood');
 
function Dog(){
var method = methood(this);
 
method('speak', 'bark');
method('bark', function(){
console.log('ugh whatever');
});
method(['fetch', 'getitnow'], function(){
console.log('ugh whatever');
});
}
 
var captainSnuggles = new Dog();
captainSnuggles.speak();
captainSnuggles.bark();
captainSnuggles.fetch();
captainSnuggles.getitnow();