That's probably a ruby "splat", which I don't quite understand either,
but I think it turns a set of arguments into a single array or vice
versa. Or something like that...
-enp
On Feb 4, 2008, at 12:00 PM, cbeok wrote:
So, I've never seen this before Shoes, so I dont know whether I have
a Ruby question or a Shoes question, bear with me.
Can anybody tell me why
blah = para
blah.replace *(ary.map {|x| [link(x) {action}]}.flatten)
does what I want, but
blah.replace(ary.map {|x| [linke(x) {action}]}.flatten)
does not?
Whats with that asterisk?
Thanks.
-colin
--
col·ly·wob·bles –noun (used with a singular or plural verb)
Informal.
1. intestinal cramps or other intestinal disturbances.
2. a feeling of fear, apprehension, or nervousness.