Skip to content

Instantly share code, notes, and snippets.

@arbarlow
Created October 17, 2011 19:19
Show Gist options
  • Select an option

  • Save arbarlow/1293505 to your computer and use it in GitHub Desktop.

Select an option

Save arbarlow/1293505 to your computer and use it in GitHub Desktop.
index.coffee
module.exports = class Controller
@relationships = []
constructor: (req, res) ->
# nothing to do here..
@belongs_to: (klass) ->
@relationships.push klass
Controller = require './controller'
Monkey = require './monkey'
console.log Monkey.relationships
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