[TxMt] Ruby "Run Script" and RubyCocoa
Charilaos Skiadas
cskiadas at uchicago.edu
Thu Jun 22 04:33:46 UTC 2006
On Jun 21, 2006, at 11:12 PM, Chris Thomas wrote:
> On Jun 21, 2006, at 9:43 PM, Charilaos Skiadas wrote:
>
>> I've been just trying out RubyCocoa, and I am having problems
>> running some of the examples from within TextMate. The "Run
>> Script" command doesn't seem to work properly, for instance with
>> the "HelloWorld.rb" example.
>
> The 'if $0 == __FILE__' idiom doesn't seem to be working with
> RubyMate. In HelloWorld.rb, replace "$0 == __FILE__" with "1".
>
Works like a charm. Thanks!
RubyMate is a dangerous place for me to wade through, so I've been
avoiding it, but is there no way to fix this there? Is the problem
that $0 points to the wrong thing or __FILE__ ? Can't they be changed
before the code from the program loads?
> Chris
>
Haris
More information about the textmate
mailing list