Method: Neovim::Remote::Message.from_array

Defined in:
lib/neovim/remote.rb

.from_array(ary) ⇒ Object



21
22
23
24
25
26
# File 'lib/neovim/remote.rb', line 21

def from_array ary
  kind, *payload = *ary
  klass = find kind
  klass or raise "No message type for id #{kind.inspect}"
  klass[ *payload]
end