From: Rodrigo Rosenfeld Rosas Date: 2011-06-08T23:34:51+09:00 Subject: [ruby-core:36853] Re: [Ruby 1.9 - Feature #4824] Provide method Kernel#executed? Em 08-06-2011 11:28, Nobuyoshi Nakada escreveu: > 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? I loved this one!