Class: Neovim::DslBase
- Includes:
- Logging
- Defined in:
- lib/neovim/handler.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Plugins
Constant Summary
Constants included from Logging
Logging::DEFAULT_LEVEL, Logging::LEVELS
Class Method Summary collapse
Instance Method Summary collapse
- #add_plugins(source, host) ⇒ Object
-
#initialize(source) ⇒ DslBase
constructor
A new instance of DslBase.
Methods included from Logging
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
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 |