| Module | Sinatra::Irb |
| In: |
lib/sinatra/irb.rb
|
Sinatra Irb is entered via ruby myapp.rb -c (replace myapp.rb with your app filename)
Be sure to also check out Sinatra::TestMethods for more cool stuff when your in Irb
Show the body with result info in your text editor!!! Great Job!
# File lib/sinatra/irb.rb, line 22
22: def show!(editor = nil)
23: editor = editor || ENV['EDITOR']
24: IO.popen(editor, 'w') do |f|
25: f.puts "<!--"
26: f.puts result_info
27: f.puts "-->"
28: f.puts
29: f.puts body
30: end
31: nil
32: end