Ruby 对象、类、类的类与超类

ikbear · February 29, 2012 · Last by cisolarix replied at April 28, 2013 · 3836 hits

Ruby 中的普通类、普通对象、Object、BasicObject、Module 和 Class 等的 class 和 superclass,我真的纠结不清啊。BasicObject 的 superclass 又是 nil,这是神学还是哲学啊?

找到个图 !![]((http://rubylearning.com/images/rubyclass.jpg) BasicObject 他爹木有了,就 nil 了呗

什么哲学,你想太多了,作者写着写着就变成这样了呗。 你不觉得现在很多观众的想像力已经超过导演的了吗。

看 ruby 元编程 找答案吧

等看完 Well Grounded Rubyist 之后再看 Ruby Metaprogramming

You need to Sign in before reply, if you don't have an account, please Sign up first.