method-combinators icon indicating copy to clipboard operation
method-combinators copied to clipboard

Results 12 method-combinators issues
Sort by recently updated
recently updated
newest added

Okay, this was a fun xmas one while my toddler is napping. I used your `around` combinator to build an `actsAs` combinator. This assigns roles a la DCI. So the...

This contains the `my` and `pipe` helpers. `pipe` allows both method names and actual functions because it's IMHO not worth cluttering up the namespace with two separate `pipe` functions.

expect hidesWait should be running .hide() instead of .show()

It is not enough to pass to `after` decorator only value, returned by decorated function. There can bee some logic, based on arguments of decorated function. Of course, `around` can...

In your example async_base is this function ``` javascript function () { jQuery.get('http://example.com/comedians/jseinfeld.json', {}, function (data) { this.name = data.name; this.occupation = data.occupation; }); } ``` Call this function use...

The sed combinator transforms a parameter at whatever index you input. Useful in situations analogous to Rails route helpers. `user_path(user)` is sometimes fed a user and sometimes fed a user...

The branchOn combinator lets you put some logic in the class declaration. ``` coffeescript requestSoda: locateWaiter \ placeOrder \ branchOn(customerBMI) success: bringJumbo failure: callCopsOnLardass ``` I'll add documentation for any...

We can use `async(fn)` to create asynchronous decorations, but we are assuming that the method being decorated is asynchronous. We need a way to decorate the underlying method if we...