Class: RShade::Filter::ExcludePathFilter
Constant Summary
collapse
- NAME =
:exclude_paths
Instance Attribute Summary
#paths
Instance Method Summary
collapse
#config_call, #initialize
#config, #config_call
Instance Method Details
#call(event) ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/rshade/filter/exclude_path_filter.rb', line 16
def call(event)
event_path = event.path
paths.none? do |path|
next str?(path, event_path) if path.is_a? String
next regexp?(path, event_path) if path.is_a? Regexp
false
end
end
|
8
9
10
|
# File 'lib/rshade/filter/exclude_path_filter.rb', line 8
def name
NAME
end
|
12
13
14
|
# File 'lib/rshade/filter/exclude_path_filter.rb', line 12
def priority
0
end
|