Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'rubygems' require 'activesupport' t = Time.now begin candidate = t.advance(:years => 10) puts candidate < Time.now rescue ArgumentError => exception case exception.to_s when "comparison of DateTime with Time failed" puts candidate < DateTime.now end end
This paste will be private.
From the Design Piracy series on my blog: