Class: NvimConf::Generators::Commands::Code::Lua

Inherits:
Object
  • Object
show all
Defined in:
lib/nvim_conf/generators/code/commands/lua.rb

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ Lua

Returns a new instance of Lua.



6
7
8
# File 'lib/nvim_conf/generators/code/commands/lua.rb', line 6

def initialize(command)
  @command = command
end

Instance Method Details

#generateObject



10
11
12
# File 'lib/nvim_conf/generators/code/commands/lua.rb', line 10

def generate
  send("#{@command.vim_exec ? "vim" : "lua"}_exec")
end