From: "Kontra, Gergely" Date: 2002-09-10T02:02:48+09:00 Subject: Re: scopes >> I've a question about scopes: >> >> @mail=Someclass.new >> @pass=Someclass.new >> def @pass.check >> # how to acces @mail here? >> end > > >The instance variables are always private in Ruby: >you can't access the instance variables of an object from >a different object. What if I write mail and pass instead of @mail and @pass Gergo +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ | Email: kgergely@mcl.hu, kgergely@turul.eet.bme.hu | | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 | +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+ . Magyar php mirror es magyar php dokumentacio: http://hu.php.net