2012-08-12 00:22:29 +00:00
|
|
|
class Pry
|
2012-12-25 21:35:17 +00:00
|
|
|
class Command::BangPry < Pry::ClassCommand
|
|
|
|
match '!pry'
|
2012-08-12 01:26:59 +00:00
|
|
|
group 'Navigating Pry'
|
2012-12-25 21:35:17 +00:00
|
|
|
description 'Start a Pry session on current self; this even works mid ' \
|
|
|
|
'multi-line expression.'
|
2012-08-12 01:26:59 +00:00
|
|
|
|
|
|
|
def process
|
|
|
|
target.pry
|
|
|
|
end
|
2012-08-12 00:22:29 +00:00
|
|
|
end
|
2012-12-25 21:35:17 +00:00
|
|
|
|
|
|
|
Pry::Commands.add_command(Pry::Command::BangPry)
|
2012-08-12 00:22:29 +00:00
|
|
|
end
|