Re: [Rails] Re: Re: Why use send when you can call the method directly?

2011-01-28 Thread David Kahn
On Thu, Jan 27, 2011 at 8:39 PM, Marnen Laibow-Koser li...@ruby-forum.comwrote: David Kahn wrote in post #978011: On Thu, Jan 27, 2011 at 4:01 PM, William Fisk william.f...@gmail.comwrote: Ah, thanks, yes that will probably be the reason. Right... send comes in real handy in

Re: [Rails] Re: Re: Why use send when you can call the method directly?

2011-01-28 Thread Peter Bell
On Jan 28, 2011, at 11:55 AM, David Kahn wrote: If a private method is an intermediate value in a computation, just test the end result. If a private method really needs to be tested separately, then it's telling you that it wants to be public. I disagree -- for me public is what I want to

[Rails] Re: Re: Why use send when you can call the method directly?

2011-01-27 Thread Marnen Laibow-Koser
David Kahn wrote in post #978011: On Thu, Jan 27, 2011 at 4:01 PM, William Fisk william.f...@gmail.comwrote: Ah, thanks, yes that will probably be the reason. Right... send comes in real handy in testing private methods, use it all the time Then you've got bigger problems. You shouldn't