From: Gary Wright Date: 2010-01-20T07:05:09+09:00 Subject: Re: Newbie needs help getting started On Jan 19, 2010, at 4:18 PM, Siep Korteling wrote: > You probably want to print n.row , which returns nil in your code > because of a previous error: row = r should be @row = r. It took me a while to absorb Ruby's assignment/setter syntax: tmp = 1 # local variable assignment @tmp = 1 # instance variable assignment (bypasses setter) self.tmp = 1 # method *call* to method named 'tmp=' (i.e. the setter) # same as self.tmp=(1) self[index] = 1 # method *call* to method named '[]=' for current object # same as self.[]=(index, 1) tmp[index] = 1 # method *call* to method named '[]=' for tmp # same as tmp.[]=(index, 1) Gary Wright