From: Julian Leviston Date: 2013-04-17T20:08:02+09:00 Subject: Re: question on watir * here converts an array to a list of arguments. so, in: args_ary = [1,2] hash = Hash[*args_ary] it's the same as hash = Hash[1,2] where as args_ary = [1,2] hash = Hash[args_ary] is the same as hash=Hash[[1,2]] ... which will give you a bunch of warnings and just set hash to an empty Hash. J On 17/04/2013, at 7:51 PM, Raj pal wrote: > can you tell me what is the difference between > a=[2,3,3,5] > a=Hash[*b]# It's converting into hash > a=Hash[b]#it's converting if a consist of any array > > What is the job of "*" here? > > RAJ > > -- > Posted via http://www.ruby-forum.com/. >