Class: Neovim::ConnectionUnix
- Inherits:
-
Connection
- Object
- MPLight::Types
- Connection
- Neovim::ConnectionUnix
- Defined in:
- lib/neovim/connection.rb
Constant Summary
Constants included from Logging
Logging::DEFAULT_LEVEL, Logging::LEVELS
Instance Attribute Summary
Attributes inherited from Connection
Class Method Summary collapse
Methods inherited from Connection
#additional_data, #error, #initialize, #start
Methods included from Logging
Constructor Details
This class inherits a constructor from Neovim::Connection
Class Method Details
.open_files(path, timeout: nil) ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/neovim/connection.rb', line 92 def open_files path, timeout: nil due = Time.now + timeout if timeout require "socket" begin UNIXSocket.open path do |socket| due = nil yield (new socket, socket) end rescue Errno::ENOENT if due then sleep 0.1 retry end end end |