Created
March 7, 2012 14:25
-
-
Save tlossen/1993425 to your computer and use it in GitHub Desktop.
cloby is magic!
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
require 'rubygems' | |
require 'cloby' | |
class Bunny < Clojure::Object | |
def initialize | |
@alive = true | |
end | |
def kill! | |
@alive = false | |
end | |
def to_s | |
"Bunny[#{@alive ? 'alive' : 'dead'}]" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment