delegato travis-ci npm

A delegator mixin for CoffeeScript

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

delegato

delegato

A delegator mixin for CoffeeScript ...


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