Ruby - Enumerable and Collection Processing
Identify the issue in the following Ruby code snippet:
values = [10, 15, 20, 25]
groups = values.group_by do |v|
if v % 2 == 0
'even'
else
'odd'
end
end
puts groups