delegato travis-ci npm

A delegator mixin for CoffeeScript

3 years after

delegato Build Status

Delegate Methods

Delegato = require 'delegato'

class Ship
  Delegato.includeInto(this)

  @delegatesMethods 'dropAnchor', 'raiseAnchor', toProperty: 'winch'
  @delegatesMethod 'leavePort', toMethod: 'getCaptain'

Delegate Properties

class MyClass
  Delegato.includeInto(this)

  @delegatesProperty 'steamPressure', toProperty: 'engineRoom'
  @delegatesProperties 'heading', 'speed', toMethod: 'getVelocity'

Related Repositories

awesome-coffeescript

awesome-coffeescript

A curated list of awesome CoffeeScript frameworks, libraries and software. ...


Top Contributors

nathansobo kevinsawicki mnquintana liuxiong332

Releases

-   v1.0.0 zip tar
-   v0.4.0 zip tar
-   v0.3.0 zip tar
-   v0.2.0 zip tar
-   v0.1.0 zip tar