Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Ideas for replacing $0==__FILE__
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Hal Fulton, post: 4421332"] Sorry, I was unclear. It's like this: #!/usr/bin/ruby (treat as normal code) __FOO__ (execute only if this is the main file, not a required/loaded file) __END__ (any data) where FOO is some marker, either MAIN or TEST or something else. Better? Hal [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Ideas for replacing $0==__FILE__
Top