Returns a hash with non-nil values of the original hash replaced with present.
127 128 129 130 131 132 133
# File 'lib/tektite_ruby_utils/present.rb', line 127 def mask_present result = {} each do |key, value| result[key] = value.present? ? present : nil end result end