Created
September 24, 2011 07:19
-
-
Save vbedegi/1239074 to your computer and use it in GitHub Desktop.
Web Workbench won't compile this code. Something about the switch
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
class SomeClass | |
someMethod: -> | |
x = 42 | |
switch x | |
when 41 | |
alert 'less' | |
when 43 | |
alert 'more' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment