On May 16, 9:21=A0pm, Bob Aman <b... / sporkmonger.com> wrote:
> class SelectTest
> =A0 def method_missing(method, *params, &block)
> =A0 =A0 return "Expected Result" if method =3D=3D :select
> =A0 =A0 super
> =A0 end
>
> =A0 def test_one
> =A0 =A0 self.select()
> =A0 end
>
> =A0 def test_two
> =A0 =A0 select()
> =A0 end
> end
> puts SelectTest.new.test_one
> puts SelectTest.new.test_two
>
> Anyone care to explain why test_one calls method_missing and test_two
> calls the private method Object#select?

method_missing catches public method calls, not private function
calls.

T.