From: Brian Palmer Date: 2005-10-01T05:09:14+09:00 Subject: Re: what does *my_array do? It expands the array into arguments. For example: my_array = [ "str1", "str2", "str3" ] listbox.add(*my_array) is the same as listbox.add("str1", "str2", "str3") Many Ruby APIs make it easier on the developer by automatically expanding the array if it's the lone argument, but I guess tk doesn't, at least not in this case. -- Brian Palmer On Sep 30, 2005, at 1:56 PM, Shea Martin wrote: > using tk in ruby, when I add my_array to a listbox it adds all the > items as a single large string. when I add them as *my_array it > puts them in correctly. > > I got *my_array from a example on web, but I don't know what it means. > > ~S > >