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
commands, #find, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.help(cmd) ⇒ Object
35
36
37
38
39
|
# File 'lib/byebug/commands/reload.rb', line 35
def help(cmd)
%{
r[eload]\tforces source code reloading
}
end
|
.help_command ⇒ Object
31
32
33
|
# File 'lib/byebug/commands/reload.rb', line 31
def help_command
'reload'
end
|
Instance Method Details
#execute ⇒ Object
19
20
21
22
|
# File 'lib/byebug/commands/reload.rb', line 19
def execute
Byebug.source_reload
print "Source code is reloaded. Automatic reloading is #{source_reloading}.\n"
end
|
#regexp ⇒ Object
15
16
17
|
# File 'lib/byebug/commands/reload.rb', line 15
def regexp
/^\s*r(?:eload)?$/
end
|