From: Tom Cloyd Date: 2009-01-21T09:49:04+09:00 Subject: Re: efficient access of instance variables Tom Cloyd wrote: > I'm having my first extended day working with classes - trying to > convert some functioning methods in my current project to classes. > > I'm looking for a way to call a class instance and get back a couple > of its instance variables with an efficiency equivalent to this method > call: > > @log, @logging_now = manage_log( 'open' ) # the method returns both vars > > So, I seem to have write all this - > > manlog = ManageLog.new > manlog.open > log, logging_now = manlog.log, manlog.logging_now > > Before I resign myself, I want to ask if I'm missing something here. > Is there a way I can do any of this more tersely? > > Thanks for any help, > > Tom > Scratch this call for help. I getting it figure out. ~t. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << tc@tomcloyd.com >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~