Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
describe "A child extending a Ruby class that includes Java interfaces" do it "should implement all those interfaces" do sup = Class.new { include BeanLikeInterface } child = Class.new(sup) { def value; 1; end } obj = child.new blih = BeanLikeInterfaceHandler.new(obj) blih.value.should == 1 end end
This paste will be private.
From the Design Piracy series on my blog: