Method: Neovim::Plugin::Handler#initialize
- Defined in:
- lib/neovim/plugin/handler.rb
#initialize(source, type, name, sync, options, block) ⇒ Handler
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Handler.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/neovim/plugin/handler.rb', line 11 def initialize(source, type, name, sync, , block) @source = source @type = type.to_sym if type.respond_to?(:to_sym) @name = name.to_s @sync = sync @options = @block = block || -> {} @qualified = .key?(:qualified) ? .delete(:qualified) : true end |