Method: Array#recursive_cleanup

Defined in:
lib/libis/tools/extend/array.rb

#recursive_cleanupObject

Removes all empty entries recursively in the array and each Hash in it



11
12
13
14
# File 'lib/libis/tools/extend/array.rb', line 11

def recursive_cleanup
  each { |v| v.recursive_cleanup if Array === v || Hash === v }
  cleanup
end