From: Mayank Kohaley Date: 2011-10-06T17:12:00+09:00 Subject: Re: NameError problem --001636c925e56f54b604ae9ce052 Content-Type: text/plain; charset=UTF-8 One more thing which you should know is that you do not need to specify return statement if it's the last statement of the method in ruby. So instead of: def name return @name end You can write : def name @name end Mayank --001636c925e56f54b604ae9ce052--