Class: Neovim::Plugin
- Inherits:
-
Object
- Object
- Neovim::Plugin
- Defined in:
- lib/neovim/plugin.rb,
lib/neovim/plugin/dsl.rb,
lib/neovim/plugin/handler.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#handlers ⇒ Object
Returns the value of attribute handlers.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Class Method Summary collapse
-
.from_config_block(source) {|DSL| ... } ⇒ Object
Entrypoint to the
Neovim.plugin
DSL.
Instance Method Summary collapse
-
#initialize(source) ⇒ Plugin
constructor
A new instance of Plugin.
-
#specs ⇒ Array
Handler specs used by
nvim
to register plugins.
Constructor Details
#initialize(source) ⇒ Plugin
Returns a new instance of Plugin.
18 19 20 21 |
# File 'lib/neovim/plugin.rb', line 18 def initialize(source) @handlers = [] @source = source end |
Instance Attribute Details
#handlers ⇒ Object
Returns the value of attribute handlers.
5 6 7 |
# File 'lib/neovim/plugin.rb', line 5 def handlers @handlers end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/neovim/plugin.rb', line 6 def source @source end |
Class Method Details
Instance Method Details
#specs ⇒ Array
Returns Handler specs used by nvim
to register plugins.
24 25 26 |
# File 'lib/neovim/plugin.rb', line 24 def specs @handlers.map(&:to_spec) end |