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!