Quick question. Can I somehow retrieve the instance of the class Test in
which the variable con exists. As in the example below, can I retrieve
the instance of Test from the variable p?
class Test
attr_accessor :con
def initialize()
@con = Hash.new
end
end
p = Test.new.con
--
Posted via http://www.ruby-forum.com/.