benjohn
3/26/2008 12:40:00 PM
> On 26/03/2008, Peña, Botp <botp@delmonte-phil.com> wrote:
> m:lib arie$ rak "private\(" rake.rb
> 1091|private(*FileUtils.instance_methods(false))
> 1092|private(*RakeFileUtils.instance_methods(false))
>
> oh wait, sorry for the noise, I know the answer! so private also
> accepts an array of string values which are method names. Thanks for
> the clue :-)
Slightly more precisely (and very pedantically), private _isn't_ accepting
an array in this case. The * is there to expand an array (which it doesn't
want) in to seperate arguments (which it likes).
Cheers,
B