Class: Datadog::Core::Remote::Dispatcher::Matcher
- Inherits:
-
Object
- Object
- Datadog::Core::Remote::Dispatcher::Matcher
- Defined in:
- lib/datadog/core/remote/dispatcher.rb
Overview
Matcher checks if the path matches
Defined Under Namespace
Classes: Product
Instance Method Summary collapse
-
#initialize(&block) ⇒ Matcher
constructor
A new instance of Matcher.
- #match?(path) ⇒ Boolean
Constructor Details
#initialize(&block) ⇒ Matcher
Returns a new instance of Matcher.
81 82 83 |
# File 'lib/datadog/core/remote/dispatcher.rb', line 81 def initialize(&block) @block = block end |
Instance Method Details
#match?(path) ⇒ Boolean
85 86 87 |
# File 'lib/datadog/core/remote/dispatcher.rb', line 85 def match?(path) @block.call(path) end |