Class: Neovim::WriteBuf
- Defined in:
- lib/neovim/ruby_provider.rb
Instance 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::Write
Instance Method Details
#finish ⇒ Object
153 154 155 156 157 158 |
# File 'lib/neovim/ruby_provider.rb', line 153 def finish if @rest.notempty? then @client.put [@rest], "l", true, false @rest = nil end end |
#write(*args) ⇒ Object
143 144 145 146 147 148 149 150 151 152 |
# File 'lib/neovim/ruby_provider.rb', line 143 def write *args s = @rest||"" args.each { |a| s << a } s = s.split $/, -1 @rest = s.pop @client.put s, "l", true, false nil end |