Class: Neovim::DslBase

Inherits:
Object show all
Includes:
Logging
Defined in:
lib/neovim/handler.rb

Direct Known Subclasses

DslPlain, DslProvider, DslRemote, DslVimscript

Defined Under Namespace

Classes: Plugins

Constant Summary

Constants included from Logging

Logging::DEFAULT_LEVEL, Logging::LEVELS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Logging

put

Constructor Details

#initializeDslBase

Returns a new instance of DslBase.



102
103
104
105
# File 'lib/neovim/handler.rb', line 102

def initialize
  @setups = []
  @handlers = {}
end

Class Method Details

.open(*args) {|i| ... } ⇒ Object

Yields:

  • (i)


95
96
97
98
99
# File 'lib/neovim/handler.rb', line 95

def open *args
  i = new *args
  yield i
  i.mkplugin
end

Instance Method Details

#mkpluginObject



107
108
109
# File 'lib/neovim/handler.rb', line 107

def mkplugin
  Plugins.new self.class::TYPE, @setups, @handlers
end