[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to add function parameter and conditions dynamically ?

Varun Goel

4/24/2008 11:47:00 AM

Hi All,
I have one function in that function i wanna add parameters and
conditions dynamically.

I hope you got me if yes please tell me what should i do.

Thanks
Varun Kumar
--
Posted via http://www.ruby-....

1 Answer

Robert Klemme

4/24/2008 9:27:00 PM

0

On 24.04.2008 13:47, Varun Goel wrote:

> I have one function in that function i wanna add parameters and
> conditions dynamically.

"Function in a function"? Like

def a
def b
end
end

?

> I hope you got me if yes please tell me what should i do.

No, come again. Do you want to

1. change the argument list of a method at runtime

2. change the set of arguments you pass a method at runtime

3. something completely different

?

Cheers

robert