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