class LogTools::PostProcessing::AnnotationMatcher
Constants
- FIELDS
Public Class Methods
new(match)
click to toggle source
# File lib/log_tools/post_processing.rb, line 377 def initialize(match) if match.respond_to?(:to_str) match = Hash[key: match, value: match, stream_name: match] end @match = match end
Public Instance Methods
match(stream, ann)
click to toggle source
# File lib/log_tools/post_processing.rb, line 384 def match(stream, ann) @match.all? do |k, v| v === ann.get(k) end end
to_s()
click to toggle source
# File lib/log_tools/post_processing.rb, line 390 def to_s "annotation(#{@match.map { |k, v| "#{k}: #{v}" }.join(", ")})" end