S
Safas Khkjh
Hi,
I have a hash;
cars{ "car0" => "bmw", "car1" => "seat", "car3" => "mercedes", "car4" =>
"renault"}
What I want is to extract just the values of car0 and car3.
Is there a way instead of doing cars.each_value of doing
cars.each_value[0,3]?
Thank you in advance.
Ryan
I have a hash;
cars{ "car0" => "bmw", "car1" => "seat", "car3" => "mercedes", "car4" =>
"renault"}
What I want is to extract just the values of car0 and car3.
Is there a way instead of doing cars.each_value of doing
cars.each_value[0,3]?
Thank you in advance.
Ryan