Sha256: fbf26b6cd9822c1caf408c0cce7e6a29e819f71c7f6b9f3be48d18c48b17a98b
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
# frozen-string-literal: true module Leftovers module DynamicProcessors class Call def initialize(matcher, processor) @matcher = matcher @processor = processor end def process(node, file) return unless @matcher === node calls = @processor.process(nil, node, node) ::Leftovers.each_or_self(calls) do |call| file.calls << call end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
leftovers-0.8.0 | lib/leftovers/dynamic_processors/call.rb |
leftovers-0.7.0 | lib/leftovers/dynamic_processors/call.rb |