Class: Debugger::ExcludeFile
- Inherits:
-
Command
- Object
- SimpleDelegator
- Command
- Debugger::ExcludeFile
show all
- Defined in:
- lib/ruby-debug-ide/commands/file_filtering.rb
Overview
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, file_filter_supported?, #find, inherited, #initialize, load_commands, #match, method_missing, options, unescape_incoming
Class Method Details
.help(cmd) ⇒ Object
62
63
64
65
66
|
# File 'lib/ruby-debug-ide/commands/file_filtering.rb', line 62
def help(cmd)
%{
exclude file - exclude file/dir from file filter (either remove already included or add as exclude)
}
end
|
.help_command ⇒ Object
58
59
60
|
# File 'lib/ruby-debug-ide/commands/file_filtering.rb', line 58
def help_command
'include'
end
|
Instance Method Details
#execute ⇒ Object
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/ruby-debug-ide/commands/file_filtering.rb', line 43
def execute
file = @match[1]
return if file.nil?
file = realpath(file)
if Command.file_filter_supported?
Debugger.file_filter.exclude(file)
print_file_excluded(file)
else
print_debug("file filter is not supported")
end
end
|
#regexp ⇒ Object
39
40
41
|
# File 'lib/ruby-debug-ide/commands/file_filtering.rb', line 39
def regexp
/ ^\s*exclude\s+(.+?)\s*$/x
end
|