I've got a Ruby script here, and I'd like its output to act like RubyMate's output - it should appear progressively as I call "puts" or "p" or whatever. In fact, I'd like the output to piggyback on whatever RubyMate is doing.
But the script is not being run under RubyMate because it's part of a small bundle I've written myself and the place we're starting is a .txt file anyway (in other words, I've written a bundle that processes .txt files using a Ruby script).
I'm betting there is some easy way to tell the bundle command that calls this Ruby script to output like RubyMate. What would that be? Thx - m.
On 23/02/2008, at 6:15 AM, Matt Neuburg wrote:
I've got a Ruby script here, and I'd like its output to act like RubyMate's output - it should appear progressively as I call "puts" or "p" or whatever. In fact, I'd like the output to piggyback on whatever RubyMate is doing.
But the script is not being run under RubyMate because it's part of a small bundle I've written myself and the place we're starting is a .txt file anyway (in other words, I've written a bundle that processes .txt files using a Ruby script).
I'm betting there is some easy way to tell the bundle command that calls this Ruby script to output like RubyMate. What would that be? Thx - m.
Check out RubyMate itself and /Applications/TextMate.app/Contents/ SharedSupport/Support/lib/scriptmate.rb
LD.
On 2/24/08 4:53 PM, in article 86549EFB-605A-4C25-8198-4ABAF04EFB0F@ldaley.com, "Luke Daley" ld@ldaley.com wrote:
On 23/02/2008, at 6:15 AM, Matt Neuburg wrote:
I've got a Ruby script here, and I'd like its output to act like RubyMate's output - it should appear progressively as I call "puts" or "p" or whatever. In fact, I'd like the output to piggyback on whatever RubyMate is doing.
But the script is not being run under RubyMate because it's part of a small bundle I've written myself and the place we're starting is a .txt file anyway (in other words, I've written a bundle that processes .txt files using a Ruby script).
I'm betting there is some easy way to tell the bundle command that calls this Ruby script to output like RubyMate. What would that be? Thx - m.
Check out RubyMate itself and /Applications/TextMate.app/Contents/ SharedSupport/Support/lib/scriptmate.rb
Obviously, but I was hoping for actual instructions. m.
On 26/02/2008, at 3:50 AM, Matt Neuburg wrote:
Check out RubyMate itself and /Applications/TextMate.app/Contents/ SharedSupport/Support/lib/scriptmate.rb
Obviously, but I was hoping for actual instructions. m.
I don't think there are any instructions per se. I have just finished a RubyMate like implementation, so if you want to ask questions about it jump on the irc channel.
LD.