Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'java' import javax.naming.InitialContext module JndiAdapter def lookup(jndi_resource) context = InitialContext.new environment = context.lookup 'java:comp/env' environment.lookup jndi_resource.to_s end end
This paste will be private.
From the Design Piracy series on my blog: