Sha256: ab015b6cd25ae35237c2edffa7493b8d572c5c26b1c4abc3ba56d8c673e7b374
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
# frozen_string_literal: true module Mnogootex module Log # This data structure represents a typology of log line chunks # belonging to a given log {level}. # They start with a line matching {regexp} and have a fixed {length}. # # @!attribute regexp # @return [Regexp] the regexp to match the first line # @!attribute level # @return [Symbol] the associated log level # @!attribute length # @return [Integer] the number of matched lines Matcher = Struct.new(:regexp, :level, :length) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mnogootex-1.0.1 | lib/mnogootex/log/matcher.rb |
mnogootex-1.0.0 | lib/mnogootex/log/matcher.rb |