Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/rzabbix.rb

Instance Method Summary collapse

Instance Method Details

#rzbx_recursively_symbolize_keysObject



34
35
36
37
38
39
40
41
42
# File 'lib/rzabbix.rb', line 34

def rzbx_recursively_symbolize_keys
  self.map do |item|
    if item.is_a?(Hash) || item.is_a?(Array)
      item.rzbx_recursively_symbolize_keys
    else
      item
    end
  end
end