Skip to content

Instantly share code, notes, and snippets.

Created November 17, 2014 08:46
Show Gist options
  • Save anonymous/3fdd0f358df20f0ce15f to your computer and use it in GitHub Desktop.
Save anonymous/3fdd0f358df20f0ce15f to your computer and use it in GitHub Desktop.
Private members in CoffeeScript
class Foo
privateBar = "bar"
getPrivateBar = () ->
privateBar
publicBar: () ->
privateBar()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment