Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/dockerploy/core_ext/hash.rb

Overview

Extentions for hash

Instance Method Summary collapse

Instance Method Details

#symbolize_keysObject



3
4
5
6
7
8
9
10
11
# File 'lib/dockerploy/core_ext/hash.rb', line 3

def symbolize_keys
  _deep_transform_keys_in_object(self) do |key|
    begin
      key.to_sym
    rescue StandardError
      key
    end
  end
end