Hi,
In message "[ruby-talk:04470] __name__ == "__main__" equivalent?"
on 00/08/15, Graham Hughes <graham / ccs.ucsb.edu> writes:
|
|A common Python idiom is to have a file like so:
|
| if __name__ == "__main__": main ()
|Is there an idiomatic way to do this?
if $0 == __FILE__
main
end
although I'm not sure if it works with mod_ruby.
matz.