Subject: Re: How to pass a hash into a function
From: 7stud -- <bbxx789_05ss yahoo.com>
Date: Fri, 15 Feb 2008 07:01:59 +0900
References: 291072
In-reply-to: 291072
h = {1=>[88, 99, 100]}
def show(a_hash)
puts a_hash[1]
end
show(h)
--output:--
88
99
100
--
Posted via http://www.ruby-forum.com/.