Sha256: 2464b2258401b886dd6bb326a2ea630eeb84c1b5587f5492981303e5f47ea833

Contents?: true

Size: 359 Bytes

Versions: 13

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module ValueProcessors
    class Swapcase
      def initialize(then_processor)
        @then_processor = then_processor

        freeze
      end

      def process(str, node, method_node)
        return unless str

        @then_processor.process(str.swapcase, node, method_node)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
leftovers-0.8.0 lib/leftovers/value_processors/swapcase.rb
leftovers-0.7.0 lib/leftovers/value_processors/swapcase.rb
leftovers-0.6.0 lib/leftovers/value_processors/swapcase.rb
leftovers-0.5.5 lib/leftovers/value_processors/swapcase.rb
leftovers-0.5.4 lib/leftovers/value_processors/swapcase.rb
leftovers-0.5.3 lib/leftovers/value_processors/swapcase.rb
leftovers-0.5.2 lib/leftovers/value_processors/swapcase.rb
leftovers-0.5.1 lib/leftovers/value_processors/swapcase.rb
leftovers-0.5.0 lib/leftovers/value_processors/swapcase.rb
leftovers-0.4.3 lib/leftovers/value_processors/swapcase.rb
leftovers-0.4.2 lib/leftovers/value_processors/swapcase.rb
leftovers-0.4.1 lib/leftovers/value_processors/swapcase.rb
leftovers-0.4.0 lib/leftovers/value_processors/swapcase.rb