public
Description: Ruby TextMate bundle
Homepage: http://drnicwilliams.com
Clone URL: git://github.com/drnic/ruby-tmbundle.git
ruby-tmbundle / DragCommands / Require Ruby Files.tmDragCommand
100644 28 lines (26 sloc) 0.759 kb

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> beforeRunningCommand nop command #!/usr/bin/env ruby

filepath = ENV['TMDROPPED_FILE'].gsub(/.rb$/, '') puts "require File.dirname(FILE) + '/#{file_path}'" draggedFileExtensions rb input selection name Require Ruby Files output insertAsSnippet scope source.ruby uuid 0FA9B84F-CC58-4C0F-A5F0-3E6A67ECB6FE