Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'sinatra'
- set :server, 'mongrel'
- def very_complex_calculations
- sleep 3
- "Result!"
- end
- class C
- def each
- yield "Please wait, loading...\n"
- yield very_complex_calculations
- yield "\nFinished!\n"
- end
- end
- get '/' do
- C.new
- end
Add Comment
Please, Sign In to add comment