module Todo::Helpers::Hash::Compact

Public Instance Methods

compact(hash) click to toggle source
# File lib/todo/helpers/hash/compact.rb, line 5
def compact(hash)
  hash.reject { |key, value| value.nil? }
end