From: Love U Ruby Date: 2013-04-12T03:57:46+09:00 Subject: Re: confusion with Struct class "Jesús Gabriel y Galán" wrote in post #1105307: > On Thu, Apr 11, 2013 at 7:38 PM, Love U Ruby > wrote: > As you can see the class Customer has a name method. > > If you create a class without assigning it to a constant, it doesn't > have a name: > > 1.9.2p290 :009 > c = Class.new > => # > 1.9.2p290 :010 > c.name > => nil > > on the other hand: > > 1.9.2p290 :011 > C = Class.new > => C > 1.9.2p290 :012 > C.name > => "C" Really a new lesson for me. thank you very much for such an great explanation. At least an impressive difference between `c=Class.new` and `C=Class.new` object instantiation technique. -- Posted via http://www.ruby-forum.com/.