Skip to content

Instantly share code, notes, and snippets.

@btburton42
Created October 26, 2015 17:25
Show Gist options
  • Save btburton42/81588105568091dd90be to your computer and use it in GitHub Desktop.
Save btburton42/81588105568091dd90be to your computer and use it in GitHub Desktop.
class BaseClass
instance = null
constructor: ->
if instance
return instance
else
instance = this
# contructor code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment