Class: Neovim::WriteErr
Class Method Summary collapse
Methods inherited from WriteStd
Methods inherited from Write
#<<, #flush, #initialize, open, #print, #puts
Constructor Details
This class inherits a constructor from Neovim::WriteStd
Class Method Details
.redirect(*args, **kwargs) ⇒ Object
124 125 126 127 128 129 130 131 |
# File 'lib/neovim/output.rb', line 124 def redirect *args, **kwargs open *args, **kwargs do |i| old, $stderr = $stderr, i yield ensure $stderr = old end end |