Module: Rushmate::TextmateHelper
- Included in:
- Command
- Defined in:
- lib/rushmate/textmate_helper.rb
Instance Method Summary collapse
- #current_line ⇒ Object (also: #tm_current_line)
- #current_word ⇒ Object (also: #tm_current_word)
- #project_directory ⇒ Object (also: #tm_project_directory)
- #project_directory? ⇒ Boolean (also: #tm_project_directory?)
- #selected_text ⇒ Object (also: #tm_selected_text)
- #tm_directory ⇒ Object
- #tm_file ⇒ Object
- #tm_filename ⇒ Object
Instance Method Details
#current_line ⇒ Object Also known as: tm_current_line
3 4 5 |
# File 'lib/rushmate/textmate_helper.rb', line 3 def current_line ENV["TM_CURRENT_LINE"] end |
#current_word ⇒ Object Also known as: tm_current_word
7 8 9 |
# File 'lib/rushmate/textmate_helper.rb', line 7 def current_word ENV['TM_CURRENT_WORD'] end |
#project_directory ⇒ Object Also known as: tm_project_directory
27 28 29 |
# File 'lib/rushmate/textmate_helper.rb', line 27 def project_directory root[ENV['TM_PROJECT_DIRECTORY'] + "/"] end |
#project_directory? ⇒ Boolean Also known as: tm_project_directory?
23 24 25 |
# File 'lib/rushmate/textmate_helper.rb', line 23 def project_directory? ENV['TM_PROJECT_DIRECTORY'] end |
#selected_text ⇒ Object Also known as: tm_selected_text
31 32 33 |
# File 'lib/rushmate/textmate_helper.rb', line 31 def selected_text ENV["TM_SELECTED_TEXT"] end |
#tm_directory ⇒ Object
11 12 13 |
# File 'lib/rushmate/textmate_helper.rb', line 11 def tm_directory root[ENV['TM_DIRECTORY'] + "/"] end |
#tm_file ⇒ Object
15 16 17 |
# File 'lib/rushmate/textmate_helper.rb', line 15 def tm_file root[ENV['TM_FILEPATH']] end |
#tm_filename ⇒ Object
19 20 21 |
# File 'lib/rushmate/textmate_helper.rb', line 19 def tm_filename ENV["TM_FILENAME"] end |