Method: Hash#optionalize

Defined in:
lib/sc-core-ext/hash.rb

#optionalizeObject Also known as: without_nil_values

Returns a hash that is a copy of this one, except that all nil values have been removed, making them essentially “optional” keys.



52
53
54
# File 'lib/sc-core-ext/hash.rb', line 52

def optionalize
  without_values(nil)
end