Subject: Re: same ruby file acting standalone resp. as library
From: Thomas Hafner <thomas hafner.NL.EU.ORG>
Date: Sun, 22 Apr 2007 07:55:05 +0900
References: 248659248660
Jesse Merriman <jesse.d.merriman / gmail.com> wrote/schrieb <200704211644.57610.jesse.d.merriman / gmail.com>:
> Perhaps you want:
>
> if __FILE__ == $0
> (do something)
> end
Yes, that's it.
Thanks
Thomas