Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
module Whipped def cost super + 0.2 end end module Sprinkles def cost super + 0.3 end end class Coffee def self.with(*args) args.inject(self.new) {|memo, val| memo.extend val} end def cost 2 end end x = Coffee.with Sprinkles, Whipped x.cost
This paste will be private.
From the Design Piracy series on my blog: