Class: Byebug::ReloadCommand
Overview
Implements byebug “reload” command.
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
command_exists?, commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width
Class Method Details
.description ⇒ Object
33
34
35
|
# File 'lib/byebug/commands/reload.rb', line 33
def description
%{r[eload]\tforces source code reloading}
end
|
.names ⇒ Object
29
30
31
|
# File 'lib/byebug/commands/reload.rb', line 29
def names
%w(reload)
end
|
Instance Method Details
#execute ⇒ Object
20
21
22
23
24
|
# File 'lib/byebug/commands/reload.rb', line 20
def execute
Byebug.source_reload
print "Source code is reloaded. Automatic reloading is " \
"#{Command.settings[:autoreload] ? 'on' : 'off'}.\n"
end
|
#regexp ⇒ Object
16
17
18
|
# File 'lib/byebug/commands/reload.rb', line 16
def regexp
/^\s*r(?:eload)?$/
end
|