Hi
ı am a beginner Rubyist and I have a small problem.


Track=Struct.new(:name,:surname)

#This works perfectly
tempTrack=Track.new(15,"b")
p tempTrack.name
p tempTrack.surname


But I want to create a temptrack with an incoming array how can i
convert

[15,"b"] in to 15,"b"


#And of course this doesnt work
incomingArray=[15,"b"]
tempTrack=Track.new(incomingArray)
p tempTrack.name
p tempTrack.surname

Thanks.
Akif,
-- 
Posted via http://www.ruby-forum.com/.