Sha256: bd4284b58b36dd26c7981280aae87cc908c394dddfb6bf849c2a5e621f17d2f3

Contents?: true

Size: 272 Bytes

Versions: 7

Compression:

Stored size: 272 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/hash'

module Command
  module InputMiddleware
    class Symbolizer
      def self.call(inputs)
        return inputs unless inputs.is_a?(Hash)

        inputs.to_h.symbolize_keys
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
g2_command-3.0.0 lib/command/input_middleware/symbolizer.rb
g2_command-2.4.1 lib/command/input_middleware/symbolizer.rb
g2_command-2.4.0 lib/command/input_middleware/symbolizer.rb
g2_command-2.3.0 lib/command/input_middleware/symbolizer.rb
g2_command-2.2.0 lib/command/input_middleware/symbolizer.rb
g2_command-2.1.0 lib/command/input_middleware/symbolizer.rb
g2_command-2.0.0 lib/command/input_middleware/symbolizer.rb