Created
October 17, 2011 19:19
-
-
Save arbarlow/1293505 to your computer and use it in GitHub Desktop.
index.coffee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = class Controller | |
| @relationships = [] | |
| constructor: (req, res) -> | |
| # nothing to do here.. | |
| @belongs_to: (klass) -> | |
| @relationships.push klass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Controller = require './controller' | |
| Monkey = require './monkey' | |
| console.log Monkey.relationships |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Controller = require './controller' | |
| module.exports = class Monkey extends Controller | |
| @belongs_to "Something" | |
| index: -> | |
| string = 'tes' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment