Class: Karafka::Web::Pro::Ui::Lib::Search::Matchers::RawKeyIncludes
- Defined in:
- lib/karafka/web/pro/ui/lib/search/matchers/raw_key_includes.rb
Overview
Note:
It is case sensitive
Note:
Ignores encoding issues
Checks if the key contains requested phrase
Instance Method Summary collapse
-
#call(message, phrase) ⇒ Boolean
Does message raw key contain the phrase.
Methods inherited from Base
Instance Method Details
#call(message, phrase) ⇒ Boolean
Returns does message raw key contain the phrase.
29 30 31 32 33 |
# File 'lib/karafka/web/pro/ui/lib/search/matchers/raw_key_includes.rb', line 29 def call(, phrase) .raw_key.to_s.include?(phrase) rescue Encoding::CompatibilityError false end |