Created
July 15, 2016 14:05
-
-
Save jonboiser/955fc16d8aa2803c550726396d3852bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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