Created
July 23, 2010 14:34
-
-
Save evilpie/487511 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#current style | |
class Test: | |
constructor: (name) -> | |
@name: name | |
instancemethod() | |
@classmethod: (name) -> | |
"hey" + name | |
instancemethod: -> | |
"hey" + @name | |
#switched | |
class Test: | |
constructor: (name) -> | |
@name: name | |
@instancemethod() | |
classmethod: (name) -> | |
"hey" + name | |
@instancemethod: -> | |
"hey" + @name | |
#:: | |
class Test: | |
constructor: (name) -> | |
@name: name | |
@instancemethod() | |
classmethod: (name) -> | |
"hey" + name | |
::instancemethod: -> | |
"hey" + @name | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment