Sha256: 68ee3102978770ac22978b0a4f6af869ed27ff11e298fbca80325bb480db12bf

Contents?: true

Size: 277 Bytes

Versions: 4

Compression:

Stored size: 277 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.deep_symbolize_keys
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
g2_command-1.0.0 lib/command/input_middleware/symbolizer.rb
g2_command-0.4.0 lib/command/input_middleware/symbolizer.rb
g2_command-0.3.0 lib/command/input_middleware/symbolizer.rb
g2_command-0.2.0 lib/command/input_middleware/symbolizer.rb