From: Tim Hunter Date: 2009-07-22T00:11:50+09:00 Subject: Re: *%w[..lib] William Djingga wrote: > Hi All, > > $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) > > what does *%w mean in the line above? %w[.. lib] creates an array of words. The result is ["..", "lib"]. The asterisk causes the array elements to be passed as separate arguments to File.dirname. It's exactly equivalent to this (except it's harder to understand): $:.unshift File.join(File.dirname(__FILE__), "..", "lib") -- Posted via http://www.ruby-forum.com/.