Class: Byebug::IrbCommand
Overview
Enter IRB from byebug’s prompt
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
25
26
27
|
# File 'lib/byebug/commands/irb.rb', line 25
def description
%{irb Starts an Interactive Ruby (IRB) session.}
end
|
.names ⇒ Object
21
22
23
|
# File 'lib/byebug/commands/irb.rb', line 21
def names
%w(irb)
end
|
Instance Method Details
#execute ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/byebug/commands/irb.rb', line 12
def execute
unless @state.interface.is_a?(LocalInterface)
return errmsg('Command is available only in local mode.')
end
IRB.start(__FILE__)
end
|
#regexp ⇒ Object
8
9
10
|
# File 'lib/byebug/commands/irb.rb', line 8
def regexp
/^\s* irb \s*$/x
end
|