Advertisement
Guest User

Untitled

a guest
Feb 9th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. require 'sinatra'
  2. require 'sinatra/base'
  3.  
  4. class MyApp < Sinatra::Base
  5. after '/' do
  6. puts response.body.inspect
  7. body[0] << 'new'
  8. puts response.body.inspect
  9. end
  10. end
  11.  
  12. get '/' do
  13. body ['new', 'hack']
  14. end
  15. use MyApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement