Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > determine arguments passed to a method at runtime

Reply
Thread Tools

determine arguments passed to a method at runtime

 
 
Alfonso
Guest
Posts: n/a
 
      01-17-2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Introspecting Method Arguments with Method.arity Paul Mucur Ruby 4 12-15-2009 03:30 PM
to get values passed to a method as its arguments - how? Adam Wozniak Java 40 08-17-2009 10:13 AM
[Method.invoke] wrapper - accessing arguments passed to user method. Storm Java 1 05-01-2004 11:20 AM
Determine size of the data passed from server to client mykidisgollum ASP .Net 2 03-04-2004 01:28 AM
nuby: determine method passed and determine the receiver that received the method Peña, Botp Ruby 1 01-24-2004 07:51 PM



Advertisments