Skip to content

Instantly share code, notes, and snippets.

@heycarsten
Created July 25, 2008 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save heycarsten/2455 to your computer and use it in GitHub Desktop.
Save heycarsten/2455 to your computer and use it in GitHub Desktop.
require 'coffee'
require 'water'
require 'cup'
require 'carsten'
cup = Cup.new(:size => 'small')
cup.add(Coffee::Espresso.new(:shots => 3))
cup.add(Water::Ice.new(:cubes => 12))
cup.join
Carsten.consume(cup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment