Sha256: 9de034d94c7adb96f2cc4a1d974dde97cc4ba1310333706c1da861a4bd8a963a

Contents?: true

Size: 338 Bytes

Versions: 13

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

require 'command/input_middleware/rails_params'
require 'command/input_middleware/symbolizer'

module Command
  module InputMiddleware
    MIDDLEWARE = [RailsParams, Symbolizer].freeze

    def self.call(inputs)
      MIDDLEWARE.reduce(inputs) { |memo, middleware| middleware.call(memo) }
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
g2_command-3.2.0 lib/command/input_middleware.rb
g2_command-3.1.0 lib/command/input_middleware.rb
g2_command-3.0.0 lib/command/input_middleware.rb
g2_command-2.4.1 lib/command/input_middleware.rb
g2_command-2.4.0 lib/command/input_middleware.rb
g2_command-2.3.0 lib/command/input_middleware.rb
g2_command-2.2.0 lib/command/input_middleware.rb
g2_command-2.1.0 lib/command/input_middleware.rb
g2_command-2.0.0 lib/command/input_middleware.rb
g2_command-1.0.0 lib/command/input_middleware.rb
g2_command-0.4.0 lib/command/input_middleware.rb
g2_command-0.3.0 lib/command/input_middleware.rb
g2_command-0.2.0 lib/command/input_middleware.rb