Skip to content

Instantly share code, notes, and snippets.

@jdickey
Last active December 14, 2015 03:09
Show Gist options
  • Save jdickey/5019060 to your computer and use it in GitHub Desktop.
Save jdickey/5019060 to your computer and use it in GitHub Desktop.
Example CoffeeScript source, showing that classes cannot be reopened as in JS and Ruby.
class A
constructor: ->
@a = 1
class A
foo: ->
@a
a = new A()
a.foo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment