Class: Array

Inherits:
Object show all
Defined in:
lib/kapellmeister.rb

Instance Method Summary collapse

Instance Method Details

#deep_compactObject



14
15
16
# File 'lib/kapellmeister.rb', line 14

def deep_compact
  filter_map(&:deep_compact)
end

#deep_compact!Object



18
19
20
# File 'lib/kapellmeister.rb', line 18

def deep_compact!
  map!(&:deep_compact!).compact!
end