【文件属性】:
文件名称:delegato:CoffeeScript的委托人mixin
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-18 19:58:29
CoffeeScript
德尔加托
委托方法
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 '
【文件预览】:
delegato-master
----src()
--------delegator.coffee(1KB)
----.npmignore(79B)
----spec()
--------delegator-spec.coffee(2KB)
----.travis.yml(100B)
----LICENSE.md(1KB)
----Gruntfile.coffee(1KB)
----README.md(570B)
----.gitignore(37B)
----package.json(923B)