Skip to content

Instantly share code, notes, and snippets.

View solenoid's full-sized avatar

Erik Solen solenoid

View GitHub Profile
@solenoid
solenoid / gist:1215114
Created September 13, 2011 20:47 — forked from rfreedman/gist:1214540
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())