hash.each_with_object({}) do |(key, value), new_hash|
users.each do |user|
puts user
end
end
instead of
hash.each_with_object({}) do |(key, value), new_hash|
users.each do |user|
puts user
end
end
inner block end keyword is on same line as the first block end.
instead of
inner block
endkeyword is on same line as the first block end.