Sha256: e59c7f7b46670fa28ebc39fe4670659c2f4d4ea8f8f9cec5b6cfcc5481dd6613

Contents?: true

Size: 426 Bytes

Versions: 8

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module Processors
    class Upcase
      include ComparableInstance

      def initialize(then_processor)
        @then_processor = then_processor

        freeze
      end

      def process(str, current_node, matched_node, acc)
        return unless str

        @then_processor.process(str.upcase, 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/upcase.rb
leftovers-0.12.1 lib/leftovers/processors/upcase.rb
leftovers-0.12.0 lib/leftovers/processors/upcase.rb
leftovers-0.11.2 lib/leftovers/processors/upcase.rb
leftovers-0.11.1 lib/leftovers/processors/upcase.rb
leftovers-0.11.0 lib/leftovers/processors/upcase.rb
leftovers-0.10.0 lib/leftovers/processors/upcase.rb
leftovers-0.9.0 lib/leftovers/processors/upcase.rb