Method: Vim.method_missing

Defined in:
lib/neovim/ruby_provider/vim.rb

.method_missing(method, *args, &block) ⇒ Object

Delegate all method calls to the underlying Neovim::Client object.

[View source] [View on GitHub]

17
18
19
20
21
22
23
24
25
# File 'lib/neovim/ruby_provider/vim.rb', line 17

def self.method_missing(method, *args, &block)
  if @__client
    @__client.public_send(method, *args, &block).tap do
      __refresh_globals(@__client)
    end
  else
    super
  end
end