On 10/24/06, michele <michelemendel / gmail.com> wrote:
>
> So there is no need for "send"?
>
> Thanks
>

Actually, I use send quite often -- more so than instance_eval. When I
write unit tests, I use send all the time to call the private methods
of the objects I'm testing.

I use instance_eval when I'm doing things with domain specific languages (DSLs).

Both are equally useful -- it's just a matter of learning when to use which one.

Oh, and no need to apologize for asking questions. The people here are
quite friendly.

Blessings,
TwP

By the way, here are two good articles about DSLs ... one is theory,
the other is practice.

http://www.oreillynet.com/ruby/blog/2005/12/what_is_a_dsl.html
http://www.artima.com/rubycs/articles/ruby_as_dsl.html