From: "yhara (Yutaka HARA)" Date: 2012-10-25T21:32:26+09:00 Subject: [ruby-core:48274] [ruby-trunk - Feature #6263] Simple access to toplevel object (main) Issue #6263 has been updated by yhara (Yutaka HARA). Target version changed from 2.0.0 to next minor ---------------------------------------- Feature #6263: Simple access to toplevel object (main) https://bugs.ruby-lang.org/issues/6263#change-31564 Author: trans (Thomas Sawyer) Status: Feedback Priority: Normal Assignee: Category: Target version: next minor =begin Maybe I miss something, but why is there no way to get toplevel object easily. Only way seems to be: main = eval('self', TOPLEVEL_BINDING) Would be nice if there were a simple way, maybe special global `(({$main}))` would be good choice. =end -- http://bugs.ruby-lang.org/