From: Rahul Kumar Date: 2010-10-21T16:23:52+09:00 Subject: scope when reopening method Here is a dummy class with a method "meth". class My # str contains some value generated by My def meth str end def call_meth meth "abc" end end # ------ my application starts here arr = [] m = My.new def m.meth(str) # access some other object in application scope arr << str do_something str # call some method in my app end I have the method "meth" above which is of interest to user apps. The app overrides the method and would like to access methods or variables in my application scope. Is there anyway this is possible (other than using global variables) ? To me it appears that meth() can only access what is in that objects scope plus globals. thx. -- Posted via http://www.ruby-forum.com/.