Module: TextmateRush::TextmateHelper

Included in:
Command
Defined in:
lib/textmate_rush/textmate_helper.rb

Instance Method Summary collapse

Instance Method Details

#tm_current_wordObject



3
4
5
# File 'lib/textmate_rush/textmate_helper.rb', line 3

def tm_current_word
  ENV['TM_CURRENT_WORD']
end

#tm_directoryObject



7
8
9
# File 'lib/textmate_rush/textmate_helper.rb', line 7

def tm_directory
  root[ENV['TM_DIRECTORY'] + "/"]
end

#tm_fileObject



11
12
13
# File 'lib/textmate_rush/textmate_helper.rb', line 11

def tm_file
  root[ENV['TM_FILEPATH']]
end

#tm_filenameObject



15
16
17
# File 'lib/textmate_rush/textmate_helper.rb', line 15

def tm_filename
  ENV["TM_FILENAME"]
end

#tm_project_directoryObject



19
20
21
# File 'lib/textmate_rush/textmate_helper.rb', line 19

def tm_project_directory
  root[ENV['TM_PROJECT_DIRECTORY'] + "/"]
end