Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement
Delegato = require 'delegato'
class Ship
Delegato.includeInto(this)
@delegatesMethods 'dropAnchor', 'raiseAnchor', toProperty: 'winch'
@delegatesMethod 'leavePort', toMethod: 'getCaptain'
class MyClass
Delegato.includeInto(this)
@delegatesProperty 'steamPressure', toProperty: 'engineRoom'
@delegatesProperties 'heading', 'speed', toMethod: 'getVelocity'