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/