Class: Neovim::WriteStd
Class Method Summary collapse
Methods inherited from Write
#flush, #initialize, open, #print, #puts
Constructor Details
This class inherits a constructor from Neovim::Write
Class Method Details
.redirect(client) ⇒ Object
84 85 86 87 88 89 90 91 |
# File 'lib/neovim/ruby_provider.rb', line 84 def redirect client open client do |i| old, $stdout = $stdout, i yield ensure $stdout = old end end |