From: Rahul Kumar Date: 2010-10-21T17:36:14+09:00 Subject: Re: scope when reopening method Yes, you have misunderstood. "meth" already has access to its own variables. There is an application that creates an instance of My. It also contains an array "arr". I'd like to refer to that array within the reopened "meth". I would also like to call some methods that are in my app from the reopened method. # i create an array that is not inside My class. Its in my application. arr = [] # this method belongs to my app, not to My class def do_something str puts str end m = My.new def m.meth(str) # access some other object in application scope # arr can be instance variable or local variable in application arr << str do_something str # call some method in my app end Hope i am clear. thx. -- Posted via http://www.ruby-forum.com/.