From: Amit Tomar Date: 2010-10-11T16:20:40+09:00 Subject: Re: how do i add an instance variable to a class in Ruby Thanks all for your response ,what am doing wrong is ,using def initialize1 @a=10 end instead of initialize am using initialize1 but what if i have some other function instead initialize ,then how could access this variable @a??? -- Posted via http://www.ruby-forum.com/.