Subject: how to know if i am in a module or in the main script ?
From: Stephane Wirtel <stephane.wirtel gmail.com>
Date: Sun, 5 Nov 2006 11:15:09 +0900
Hi all,
with ruby, it's possible to check if I am in the main script or in a
module with if __name__ == 'main'
Is there the same thing with ruby ?
Thanks