Hallo World,
I don't know how to call a def. again and again. . . 
Here is what I wrote . .

class Level

        def level1(url1)
                array1.length.times do |x|
                        some code here . . .
                                array2.length.times do |y|
                                        some code here . . .
                                end
                call level2(urlx)
                end
        end
        
        def level2(url2)
                        array3.length.times do |x|
                        some code here . . .
                                array4.length.times do |y|
                                        some code here . . .
                                end
                end

Problem is that the first time the call level2(urlx) works and it comes to loop 
and call again through error in call???
can anyone tell me what i am doing wrong here.
the above Eg. goes down up to 5 levels. Each one call the other.

appreciates any help
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6734&messageID=19377#19377
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to