Skip to content

Instantly share code, notes, and snippets.

@tlossen
Created March 7, 2012 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlossen/1993425 to your computer and use it in GitHub Desktop.
Save tlossen/1993425 to your computer and use it in GitHub Desktop.
cloby is magic!
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