From: Matt Mongeau Date: 2013-02-21T13:28:45+09:00 Subject: Re: How meta class differs from real class ? Josh Cheek wrote in post #1098131: > 2. It does not show up in the ancestry Right ruby will specifically skip over this class when looking at the class of an object and in the ancestry, but you can see it with a little C hackery. 水~/Code/ruby/with_c‹1.9.3-p374›$ cat inheritance.c #include "ruby.h" VALUE real_klass(VALUE self) { return RBASIC(self)->klass; } void Init_inheritance() { rb_define_method(rb_cObject, "real_class", real_klass, 0); } 水~/Code/ruby/with_c‹1.9.3-p374›$ cat test.rb require_relative 'inheritance' class Foo end puts "Class: #{Foo.class}" puts "Real class: #{Foo.real_class}" 水~/Code/ruby/with_c‹1.9.3-p374›$ ruby test.rb Class: Class Real class: # -- Posted via http://www.ruby-forum.com/.