I was looking at someone’s implementation of #meta_eval and I noticed
they used #instance_eval. I’ve always been using #class_eval with
metaclasses and getting my desired effect. So why use #instance_eval
over #class_eval when working with metaclasses?
Furthermore, I can’t even tell a difference, as demonstrated by this
class << self
t = Test.new
Using #class_eval and #instance_eval both produce the same result.
Can anyone shed some light on this subject?