Class: DebuggerXml::Vim::Notification
- Inherits:
-
Object
- Object
- DebuggerXml::Vim::Notification
- Defined in:
- lib/debugger_xml/vim/notification.rb
Instance Method Summary collapse
-
#initialize(command, options) ⇒ Notification
constructor
A new instance of Notification.
- #send ⇒ Object
Constructor Details
#initialize(command, options) ⇒ Notification
Returns a new instance of Notification.
5 6 7 8 9 10 11 |
# File 'lib/debugger_xml/vim/notification.rb', line 5 def initialize(command, ) @command = command @executable = .vim_executable @servername = .vim_servername @debug_mode = .debug_mode @logger_file = .logger_file end |
Instance Method Details
#send ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/debugger_xml/vim/notification.rb', line 13 def send command = ":call RubyDebugger.#{@command}()" starter = "<C-\\\\>" sys_cmd = "#{@executable} --servername #{@servername} -u NONE -U NONE " + "--remote-send \"#{starter}<C-N>#{command}<CR>\"" log("Executing command: #{sys_cmd}") system(sys_cmd); end |