Issue #6263 has been updated by nobu (Nobuyoshi Nakada).

Description updated
Status changed from Open to Feedback

It's simple, because no one wanted it ever.
Why do you want?

> Would be nice if there were a simple way, maybe special global `$main` would be good choice.

Why don't you set it?
----------------------------------------
Feature #6263: Simple access to toplevel object (main)
https://bugs.ruby-lang.org/issues/6263#change-25672

Author: trans (Thomas Sawyer)
Status: Feedback
Priority: Normal
Assignee: 
Category: 
Target version: 2.0.0


=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/