Skip to content

Instantly share code, notes, and snippets.

@jonboiser
Created July 15, 2016 14:05
Show Gist options
  • Save jonboiser/955fc16d8aa2803c550726396d3852bc to your computer and use it in GitHub Desktop.
Save jonboiser/955fc16d8aa2803c550726396d3852bc to your computer and use it in GitHub Desktop.
# classes
class Foo
bar: () => 1
foo = new Foo
foo.bar()
Foo.bar
Foo::bar
# commented
# bar2 = => 1
x = 3 # bar2
foo2 = bar2() + 1
# class Foo2
foo2 = new Foo2
# objects
foo3 =
a: 1
b: () =>
c: 'a'
foo3.a
foo3.b
foo3.c
# other cases (these still jump to foo3)
# foo3
'foo3'
"#{foo3}"
Foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment