From: Amit Tomar Date: 2010-10-08T23:12:46+09:00 Subject: how do i add an instance variable to a class in Ruby Hii all , I have one file named class1.rb this is structure module Person class Amit def initialize @a=10 end end end another file named class2.rb module Person class Sumit < Amit def aos puts "#{@a}" end end end i am not access value of @a ,how should i do that -- Posted via http://www.ruby-forum.com/.