Created
September 13, 2011 18:07
-
-
Save rfreedman/1214540 to your computer and use it in GitHub Desktop.
Revisions
-
rfreedman revised this gist
Sep 13, 2011 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ class Mammal constructor: (@species, @defining_char) -> print: -> "Hello I'm a " + @species + ". " + "I have " + @defining_char + "." cat = new Mammal('cat', 'claws') alert(cat.print()) -
lookfirst created this gist
Sep 13, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ class Mammal constructor: (@species, @defining_char) -> print: -> "Hello I'm a " + species + ". " + "I have " + defining_char + "." cat = new Mammal('cat', 'claws') cat.print()