Sha256: 97e817ed714dccfbcf3935242969561e031c5688d39a3ea475f02a312211acfe

Contents?: true

Size: 478 Bytes

Versions: 8

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module Processors
    class Receiver
      include ComparableInstance

      def initialize(then_processor)
        @then_processor = then_processor

        freeze
      end

      def process(_str, current_node, matched_node, acc)
        receiver = matched_node.receiver
        return unless receiver

        @then_processor.process(receiver.to_s, current_node, matched_node, acc)
      end

      freeze
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
leftovers-0.12.2 lib/leftovers/processors/receiver.rb
leftovers-0.12.1 lib/leftovers/processors/receiver.rb
leftovers-0.12.0 lib/leftovers/processors/receiver.rb
leftovers-0.11.2 lib/leftovers/processors/receiver.rb
leftovers-0.11.1 lib/leftovers/processors/receiver.rb
leftovers-0.11.0 lib/leftovers/processors/receiver.rb
leftovers-0.10.0 lib/leftovers/processors/receiver.rb
leftovers-0.9.0 lib/leftovers/processors/receiver.rb