delegato

1.0.0 • Public • Published

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'

Dependencies (1)

Dev Dependencies (7)

Package Sidebar

Install

npm i delegato

Weekly Downloads

226

Version

1.0.0

License

none

Last publish

Collaborators

  • atom-team
  • nathansobo
  • kevinsawicki
  • benogle