Why isn't the eigenclass equivalent to self.class, when it looks so similar?

后端 未结 3 1651
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 01:21

I\'ve missed the memo somewhere, and I hope you\'ll explain this to me.

Why is the eigenclass of an object different from self.class?

cl         


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 02:08

    Yehuda Katz does a pretty good job of explaining the subtleties in "Metaprogramming in Ruby: It's All About the Self"

提交回复
热议问题