Sha256: 3e0f38715dff8a93145ae09231717376902fd2071fc30eed24b1bd063f5d370e

Contents?: true

Size: 212 Bytes

Versions: 5

Compression:

Stored size: 212 Bytes

Contents

require 'json'

module LedgerSync
  module Util
    module HashHelpers
      module_function

      def deep_symbolize_keys(hash)
        JSON.parse(JSON[hash], symbolize_names: true)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ledger_sync-1.0.10 lib/ledger_sync/util/hash_helpers.rb
ledger_sync-1.0.9 lib/ledger_sync/util/hash_helpers.rb
ledger_sync-1.0.3 lib/ledger_sync/util/hash_helpers.rb
ledger_sync-1.0.2 lib/ledger_sync/util/hash_helpers.rb
ledger_sync-1.0.0 lib/ledger_sync/util/hash_helpers.rb