Sha256: 9f9ce63bcfd1758a5f06a88e96f77f30ce87097ba4e2e7d9e40f36bfcc93a779

Contents?: true

Size: 355 Bytes

Versions: 13

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

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

        freeze
      end

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

        @then_processor.process(str.upcase, 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/upcase.rb
leftovers-0.7.0 lib/leftovers/value_processors/upcase.rb
leftovers-0.6.0 lib/leftovers/value_processors/upcase.rb
leftovers-0.5.5 lib/leftovers/value_processors/upcase.rb
leftovers-0.5.4 lib/leftovers/value_processors/upcase.rb
leftovers-0.5.3 lib/leftovers/value_processors/upcase.rb
leftovers-0.5.2 lib/leftovers/value_processors/upcase.rb
leftovers-0.5.1 lib/leftovers/value_processors/upcase.rb
leftovers-0.5.0 lib/leftovers/value_processors/upcase.rb
leftovers-0.4.3 lib/leftovers/value_processors/upcase.rb
leftovers-0.4.2 lib/leftovers/value_processors/upcase.rb
leftovers-0.4.1 lib/leftovers/value_processors/upcase.rb
leftovers-0.4.0 lib/leftovers/value_processors/upcase.rb