Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# run this with : # rackup hello.ru app1 = Proc.new {|env| [200, {'Content-Type'=>'text/html', 'hello world!'] } class GoodBye def initialize(app) @app = app end def call(env) if env['PATH_INFO'] =~ %r{/goodbye} [200, {'Content-Type'=>'text/html'}, 'goodbye world!'] else @app.call(env) end end end use Goodbye run app1
This paste will be private.
From the Design Piracy series on my blog: