Skip to content

Instantly share code, notes, and snippets.

@charly
Created August 19, 2009 17:08
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 charly/170467 to your computer and use it in GitHub Desktop.
Save charly/170467 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'mixology'
module Callback
def cost
spoon_required
super
end
end
class Coffee
def spoon_required
puts "get a spoon to steer sugar || creme"
end
def cost
puts 3
end
end
coffee = Coffee.new
coffee.mixin Callback
coffee.cost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment