Class: NvimConf::Managers::Commands

Inherits:
Object
  • Object
show all
Defined in:
lib/nvim_conf/managers/commands.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommands

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

#commandsObject (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_nameObject



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