From: Love U Ruby Date: 2013-04-12T02:38:17+09:00 Subject: Re: confusion with Struct class Here is another confusion: I tried the below code: =============================== Customer = Struct.new(:name, :address) do |x| def x.greeting "Hello #{name}!" end end p Customer.greeting #=> "Hello Customer!" =============================== Now my question is - How does instance variable has been assigned to `Customer`? -- Posted via http://www.ruby-forum.com/.