From: Matt Mongeau Date: 2013-02-21T07:46:38+09:00 Subject: Re: THE CLASS/OBJECT CHICKEN-AND-EGG PARADOX Xavier R. wrote in post #1098091: > Matt Mongeau wrote in post #1098087: >> What would you want the code to show? >> >> >> 2013/2/20 Xavier R. > > > Yes! Ruby code to understand the things against the C one's. Something like this? 水/tmp‹1.9.3-p374›$ irb irb(main):001:0> class XObject irb(main):002:1> def initialize klass irb(main):003:2> @klass = klass irb(main):004:2> end irb(main):005:1> attr_reader :klass irb(main):006:1> end => nil irb(main):007:0> XObject = XObject.new(XObject) (irb):7: warning: already initialized constant XObject => # irb(main):008:0> XObject.klass => XObject irb(main):009:0> XObject.class => XObject -- Posted via http://www.ruby-forum.com/.