determine arguments passed to a method at runtime

A

Alfonso

Is that possible?

What I want to do is, using RMagick, create a ImageList with the gifs
containded in a folder, so the script would first record the names,
and then pass them to the constructor of the ImageList. It would be
something like this (if this worked):

#arguments passed to the constructor ImageList.new
args = []

dir = Dir.new("gifs")
dir.each do |nombre|
#populate the arguments array
args.push(nombre)
end

list = ImageList.new(args)


Thank's in advance.



______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top