Method: Neovim::Handler#initialize

Defined in:
lib/neovim/handler.rb

#initialize(name, type = nil, sync = nil, **options, &block) ⇒ Handler

Returns a new instance of Handler.



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/neovim/handler.rb', line 14

def initialize name, type = nil, sync = nil, **options, &block
  @block = block
  standardize options
  @spec = {
    name: name,
    opts: options,
    type: type,
    sync: sync,
  }
  @spec.compact!
end