Created
March 17, 2009 05:57
-
-
Save kitplummer/80298 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
public enum Color { red, yellow, green } | |
class TrafficLight { | |
def color = Color.red | |
} | |
def light = new TrafficLight() | |
println "The traffic light is ${light.color}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment