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
Direct Known Subclasses
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.
40 41 42 |
# File 'lib/datadog/core/remote/dispatcher.rb', line 40 def initialize(&block) @block = block end |
Instance Method Details
#match?(path) ⇒ Boolean
44 45 46 |
# File 'lib/datadog/core/remote/dispatcher.rb', line 44 def match?(path) @block.call(path) end |