Class: NvimConf::Managers::Commands
- Inherits:
-
Object
- Object
- NvimConf::Managers::Commands
- Defined in:
- lib/nvim_conf/managers/commands.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
Class Method Summary collapse
Instance Method Summary collapse
- #command(name, description: "", body: "", vim_exec: false) ⇒ Object (also: #new, #c)
-
#initialize ⇒ Commands
constructor
A new instance of Commands.
Constructor Details
#initialize ⇒ Commands
Returns a new instance of Commands.
8 9 10 |
# File 'lib/nvim_conf/managers/commands.rb', line 8 def initialize @commands = [] end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
6 7 8 |
# File 'lib/nvim_conf/managers/commands.rb', line 6 def commands @commands end |
Class Method Details
.section_name ⇒ Object
13 14 15 |
# File 'lib/nvim_conf/managers/commands.rb', line 13 def section_name "Commands" end |
Instance Method Details
#command(name, description: "", body: "", vim_exec: false) ⇒ Object Also known as: new, c
18 19 20 |
# File 'lib/nvim_conf/managers/commands.rb', line 18 def command(name, description: "", body: "", vim_exec: false) store_command(name, description, body, vim_exec) end |