Command Line
pry -r ./config/app_init_file.rb- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb- load your rails into a pry session
Debugger
| puts 'hello world' |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| g = -> (f, x) { f.call(x, 3) } | |
| h = -> (x, y) { x + y } | |
| g.call(h, 5) | |
| >>8 | |
| #same as this | |
| geo = -> (zombi, gasparin) { zombi.call(gasparin, 3) } | |
| jose = -> (gasparin, frankenstein) { gasparin + frankenstein } | |
| geo.call(jose, 5) | |
| >> 8 |