according to the documentation....

wrap(wrapperFunction[, arg...]) -> Function

i assumed that arg is where I can pass extra arguments to the wrapper
function.  but it doesn't seem to work.

what i'm trying to do is write a profiling function...
prof: function() {...}

and we have

func1.wrap(prof);
func2.wrap(prof);

but in order to differentiate between func1, and func2, i had...

func1.wrap(prof, 1)
func2.wrap(prof,2)

but this didn't seem to work...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to