Sha256: 12e2bac420e66b5cacd0658c8fff694a302969c7b85cb7283e6099177012f3fd
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true module RShade module Filter class ExcludePathFilter < IncludePathFilter NAME = :exclude_paths def name NAME end def priority 0 end 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 end end end
Version data entries
4 entries across 4 versions & 1 rubygems