Module: BrowserShooter::Commands::Debug
- Defined in:
- lib/browser_shooter/commands/debug.rb
Instance Method Summary collapse
Instance Method Details
#debug ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/browser_shooter/commands/debug.rb', line 8 def debug while( true ) print "BrowserShooter > " line = STDIN.gets.chomp break if line == "exit" eval line end end |
#try(ruby_code) ⇒ Object
4 5 6 |
# File 'lib/browser_shooter/commands/debug.rb', line 4 def try( ruby_code ) eval ruby_code end |