Bask in the glory of true awesomeness! Export Ruby strings directly into TextMate from irb or anywhere Ruby runs locally!
http://pastie.textmate.org/53655
"I want this text in textmate".to_mate
…will create a new temp file with the filename of the object_id and then open it in TextMate.
There's also String.to_safari()
If you want to keep the temp files filename the same, just pass in the filename with the method. "I want this text in textmate".to_mate('fred')
Enjoy
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors