From: Josh Cheek Date: 2010-07-25T21:18:15+09:00 Subject: Re: syntax --0016363ba4d813e84f048c354333 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jul 25, 2010 at 5:23 AM, Raghu Maddali wrote: > Hi all, > > Is there anything in ruby like we use "this" pointer in ruby.Like,how do > we write > > $this->config = parse_ini_file('web/display.ini', true) > > in ruby?? > > Thanks > -- > Posted via http://www.ruby-forum.com/. > > presumably you want self.config = parse_ini_file(...) your actual question is a little unclear (I assume you meant to refer to a different language) but you should note that there are no pointers in Ruby, and in the preceeding example, "config=" is a method defined on self, you are not directly setting an instance variable like you would be in Java, but rather invoking a method which probably sets an instance variable, though not necessarily. --0016363ba4d813e84f048c354333--