Method: Neovim::RemoteObject.new

Defined in:
lib/neovim/remote_object.rb

.new(index, client) ⇒ Object



50
51
52
53
54
55
56
57
58
# File 'lib/neovim/remote_object.rb', line 50

def new index, client
  @objs ||= []
  i = @objs.find { |s| s.index == index && s.client == client }
  unless i then
    i = plain_new index, client
    @objs.push i
  end
  i
end