Module: Command::InputMiddleware

Defined in:
lib/command/input_middleware.rb,
lib/command/input_middleware/symbolizer.rb,
lib/command/input_middleware/rails_params.rb

Defined Under Namespace

Classes: RailsParams, Symbolizer

Constant Summary collapse

MIDDLEWARE =
[RailsParams, Symbolizer].freeze

Class Method Summary collapse

Class Method Details

.call(inputs) ⇒ Object



10
11
12
# File 'lib/command/input_middleware.rb', line 10

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