I know that Ruby always keeps track of two concepts: self and current
The programmer only can access the first one, that tracks the current
object. I know that self is the default receiver when invoking methods
and that obviously affects the way Ruby processes the code. Fortunately
self I understand quite well.
My doubt comes with the current class concept. I know that when we use
instance_eval, self is set to the receiver and current class to the
singleton class, that’s why it allows to define singleton methods. I
would like to undestand how current class is altered by Ruby because
there’s no way to print stuff and see what happens.
Can anyone enumerate which cases Ruby uses current class and a general
rule for current class status?