From: Thomas Hafner Date: 2007-04-22T07:55:05+09:00 Subject: Re: same ruby file acting standalone resp. as library Jesse Merriman wrote/schrieb <200704211644.57610.jesse.d.merriman@gmail.com>: > Perhaps you want: > > if __FILE__ == $0 > (do something) > end Yes, that's it. Thanks Thomas