From: Nobuyoshi Nakada Date: 2011-06-08T23:28:34+09:00 Subject: [ruby-core:36852] Re: [Ruby 1.9 - Feature #4824] Provide method Kernel#executed? Hi, At Wed, 8 Jun 2011 16:44:55 +0900, Charles Oliver Nutter wrote in [ruby-core:36833]: > I might be more inclined to a keyword or pseudo constant along the > lines of __FILE__, like __MAIN__ that produces true iff __FILE__ == > $0. Something we can statically determine before runtime without > digging around in the caller's frame. __FILE__.main? -- Nobu Nakada