[TxMt] Ruby String.to_mate

Thomas Aylott (subtleGradient) oblivious at subtlegradient.com
Fri Apr 13 18:01:06 UTC 2007


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




More information about the textmate mailing list