Class: Neovim::Remote::Message::Response

Inherits:
Neovim::Remote::Message show all
Defined in:
lib/neovim/remote.rb

Constant Summary collapse

ID =
1
KEYS =
%i(request_id error value)

Instance Method Summary collapse

Methods inherited from Neovim::Remote::Message

#fields, find, from_array, inherited, #inspect, #method_missing, #methods, #respond_to_missing?, #to_a, #to_h, #to_s

Constructor Details

#initialize(*args) ⇒ Response

Returns a new instance of Response.



79
80
81
82
83
84
85
# File 'lib/neovim/remote.rb', line 79

def initialize *args
  super
  e = @cont[ :error]
  if e and not Array === e then
    @cont[ :error] = [0, e]
  end
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Neovim::Remote::Message