proceed.curry.apply(proceed.bind(this), args).delay(seconds); Now, it's a bit convoluted, but should work (at least a couple of precarious tests pass).
Best, -Nicolas On Jan 21, 2008 8:56 PM, Justin Perkins <[EMAIL PROTECTED]> wrote: > Hi guys,I'm curious what the correct syntax is for performing a delayed > method call when used in conjunction with the apply method. I think I was on > the right track with curry, but couldn't quite figure it out. > > Let's say I have this call: proceed.apply(this, args) > > And I want to delay that call. If I could just ignore the args, then I could > do this: proceed.bind(this).delay(seconds) > > The solution to the combination of the two is beyond my powers. > > Thanks for the help. > > -justin > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
