Forum: Ruby determine arguments passed to a method at runtime

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Alfonso (Guest)
on 2007-01-17 14:41
(Received via mailing list)
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
args = []

dir ="gifs")
dir.each do |nombre|
  #populate the arguments array

list =

Thank's in advance.

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
This topic is locked and can not be replied to.