How should I use each_with_object on Hashes? April 11, 2023 by Tarik Use (): hash.each_with_object([]) { |(k, v), array| array << k }