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

#initialize(source) ⇒ DslBase

Returns a new instance of DslBase.



91
92
93
94
# File 'lib/neovim/handler.rb', line 91

def initialize source
  @setup_blocks = []
  @handlers = {}
end

Class Method Details

.open(source, host) {|i| ... } ⇒ Object

Yields:

  • (i)


84
85
86
87
88
# File 'lib/neovim/handler.rb', line 84

def open source, host
  i = new source
  yield i
  i.add_plugins source, host
end

Instance Method Details

#add_plugins(source, host) ⇒ Object



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

def add_plugins source, host
  host.add_plugins source, (Plugins.new self.class::TYPE, @setup_blocks, @handlers)
end