Class: Byebug::PryCommand
Overview
Implements byebug’s “pry” command
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match
Class Method Details
.description ⇒ Object
124
125
126
|
# File 'lib/byebug/commands/repl.rb', line 124
def description
%{pry\tstarts a Pry session.}
end
|
.names ⇒ Object
120
121
122
|
# File 'lib/byebug/commands/repl.rb', line 120
def names
%w(pry)
end
|
Instance Method Details
#execute ⇒ Object
110
111
112
113
114
115
116
117
|
# File 'lib/byebug/commands/repl.rb', line 110
def execute
unless @state.interface.kind_of?(LocalInterface)
print "Command is available only in local mode.\n"
throw :debug_error
end
get_binding.pry
end
|
#regexp ⇒ Object
106
107
108
|
# File 'lib/byebug/commands/repl.rb', line 106
def regexp
/^\s* pry \s*$/x
end
|