Class: Command::InputMiddleware::Symbolizer

Inherits:
Object
  • Object
show all
Defined in:
lib/command/input_middleware/symbolizer.rb

Class Method Summary collapse

Class Method Details

.call(inputs) ⇒ Object



6
7
8
9
10
# File 'lib/command/input_middleware/symbolizer.rb', line 6

def self.call(inputs)
  return inputs unless inputs.is_a?(Hash)

  inputs.to_h.symbolize_keys
end