From: Love U Ruby Date: 2013-04-11T17:45:27+09:00 Subject: confusion with Struct class I went to there - http://www.ruby-doc.org/core-2.0/Struct.html but the below mentioned not cleared. Customer = Struct.new(:name, :address) p Customer.class #=>class Struct.new("Customer", :name, :address) p Customer.class #`
': uninitialized constant Customer (NameError) Can anyone help me what's the difference between these two construct? -- Posted via http://www.ruby-forum.com/.