Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.22 KB | None | 0 0
  1. app = proc do |env|
  2.     message = "It works! But no....\n"
  3.     version = "Ruby %s\n " % RUBY_VERSION
  4.     response = [message, version].join("\n")
  5.     [200, {"Content-Type" => "text/plain"}, [response]]
  6. end
  7.  
  8.  
  9. run app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement