M
michele
What's the difference between send and instance_eval (except the
obvious syntax)?
I've been trying to figure out why Ruby has them both. It seems you can
use them intechangeably, at least in the cases I've found and tested
(so the question is if there is a case where can't change one for the
other).
Sorry if this has been answered already. I really tried to find the
answers in my Ruby and Rails books and on the Internet before posting
the question here.
obvious syntax)?
I've been trying to figure out why Ruby has them both. It seems you can
use them intechangeably, at least in the cases I've found and tested
(so the question is if there is a case where can't change one for the
other).
Sorry if this has been answered already. I really tried to find the
answers in my Ruby and Rails books and on the Internet before posting
the question here.