Class: LogMagic::SearchkickExplainer::MatchExplainerSection
- Inherits:
-
Object
- Object
- LogMagic::SearchkickExplainer::MatchExplainerSection
- Includes:
- TemplatingUtils
- Defined in:
- lib/log_magic/explainers/explainer_sections/match_explainer.rb
Instance Method Summary collapse
-
#initialize(query_json) ⇒ MatchExplainerSection
constructor
A new instance of MatchExplainerSection.
- #match_regex ⇒ Object
- #template_name ⇒ Object
Methods included from TemplatingUtils
#enriche, #rendered_template, #template_path
Constructor Details
#initialize(query_json) ⇒ MatchExplainerSection
Returns a new instance of MatchExplainerSection.
4 5 6 |
# File 'lib/log_magic/explainers/explainer_sections/match_explainer.rb', line 4 def initialize(query_json) @query_json = query_json end |
Instance Method Details
#match_regex ⇒ Object
8 9 10 |
# File 'lib/log_magic/explainers/explainer_sections/match_explainer.rb', line 8 def match_regex /[^\w]match[^\w]/ end |
#template_name ⇒ Object
12 13 14 |
# File 'lib/log_magic/explainers/explainer_sections/match_explainer.rb', line 12 def template_name 'match.haml' end |