I'm using the ruby run script cmd-r and have found that I can't get statements inside the following block:
If __FILE__ == $0
Unless I extend it to:
If __FILE__ == $0 || File.basename($0) =='tmruby.rb'
Any help is much appreciated.
~tim
On 20/01/2006, at 4:15, Tim Wolters wrote:
I'm using the ruby run script cmd-r and have found that I can't get statements inside the following block: If __FILE__ == $0 Unless I extend it to: If __FILE__ == $0 || File.basename($0) =='tmruby.rb' Any help is much appreciated.
Right, this is a bug which I promised to fix but didn't yet. I'll do it now.
-- Sune.