From: ahoward Date: 2003-04-22T01:08:52+09:00 Subject: accessing top-level 'self' rubyists- any ideas how to refer to the top level 'self' in a ruby program, that is to say the self where self.to_s() == "main" eg (intent - obviously doesn't work): class Klass top_level_self = ::self ... top_level_self.instance_eval 'code' end -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ara.t.howard@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================