Class: Hash

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

Overview

Instance Method Summary collapse

Instance Method Details

#compactObject



8
9
10
# File 'lib/ensure_hash_compact.rb', line 8

def compact
  select { |_, value| !value.nil? }
end