On Wednesday 24 May 2006 23:02, Maninder, Singh wrote:
> Ryan,
>
> What's the non prototyp-ish way to handle this?
>
> What if we don't want to use bind()?

it really depends.  If the "this.function2" function doesn't rely on state 
within the object, just turn it into a 'class method' and call it directly.  
If it does, then you'll have to use bind.

bind is really just a fancy wrapper around apply(), so you can do it manually, 
but I find bind to be much more handy :)

-Jeremy

Attachment: pgpIsfXakN11X.pgp
Description: PGP signature

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to