Skip to content

Instantly share code, notes, and snippets.

Created April 10, 2014 11:32
Show Gist options
  • Save anonymous/10371243 to your computer and use it in GitHub Desktop.
Save anonymous/10371243 to your computer and use it in GitHub Desktop.
class billingBroker
@EXTENSION = [
'one',
'two'
]
@one: ->
do @hello
@two: ->
console.log(2)
class billingAction
constructor: ->
billingAction.prototype[def] = billingBroker[def] for def in billingBroker.EXTENSION
hello: ->
22
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment