Sha256: 8d14479570156901bb2b3cc58a6582aa76ba955953b42fd76d3f70512c9111ce
Contents?: true
Size: 532 Bytes
Versions: 8
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true module Leftovers module Processors class MatchMatchedNode include ComparableInstance attr_reader :matcher, :then_processor def initialize(matcher, then_processor) @matcher = matcher @then_processor = then_processor freeze end def process(str, current_node, matched_node, acc) return unless @matcher === matched_node @then_processor.process(str, current_node, matched_node, acc) end freeze end end end
Version data entries
8 entries across 8 versions & 1 rubygems