Created
April 24, 2015 18:06
-
-
Save rsms/4a15192f62cbee407e29 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
animal = { type: "an animal", | |
toString: ^{ "I'm " + @type } | |
} | |
cat = create animal, { type: "furry" } | |
print "Cat: " + cat # --> "Cat: I'm furry" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment