Sha256: a8dbc84de93ba659e6356a6c97e76c3cd038abfcb59d2140d0d19b34150480e6

Contents?: true

Size: 567 Bytes

Versions: 8

Compression:

Stored size: 567 Bytes

Contents

# typed: strict
# frozen_string_literal: true

require 'active_support/hash_with_indifferent_access'

module Workato
  module Utilities
    module HashWithIndifferentAccess
      class << self
        extend T::Sig

        sig { params(value: T.untyped).returns(ActiveSupport::HashWithIndifferentAccess) }
        def wrap(value)
          return ActiveSupport::HashWithIndifferentAccess.new unless value
          return value if value.is_a?(ActiveSupport::HashWithIndifferentAccess)

          value.with_indifferent_access
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
workato-connector-sdk-1.3.13 lib/workato/utilities/hash_with_indifferent_access.rb
workato-connector-sdk-1.3.12 lib/workato/utilities/hash_with_indifferent_access.rb
workato-connector-sdk-1.3.11 lib/workato/utilities/hash_with_indifferent_access.rb
workato-connector-sdk-1.3.10 lib/workato/utilities/hash_with_indifferent_access.rb
workato-connector-sdk-1.3.9 lib/workato/utilities/hash_with_indifferent_access.rb
workato-connector-sdk-1.3.8 lib/workato/utilities/hash_with_indifferent_access.rb
workato-connector-sdk-1.3.7 lib/workato/utilities/hash_with_indifferent_access.rb
workato-connector-sdk-1.3.6 lib/workato/utilities/hash_with_indifferent_access.rb