Skip to content

Instantly share code, notes, and snippets.

View rfreedman's full-sized avatar
🏠
Working from home

Rich Freedman rfreedman

🏠
Working from home
View GitHub Profile
@rfreedman
rfreedman / gist:1214540
Created September 13, 2011 18:07
modified Mammal CoffeeScript example
class Mammal
constructor: (@species, @defining_char) ->
print: ->
"Hello I'm a " + @species + ". " +
"I have " + @defining_char + "."
cat = new Mammal('cat', 'claws')
alert(cat.print())