Method: Hash#depth

Defined in:
lib/rundock/ext/hash.rb

#depthObject



2
3
4
# File 'lib/rundock/ext/hash.rb', line 2

def depth
  1 + values.map { |v| v.is_a?(Hash) ? v.depth : 1 }.max
end