Class: AIA::Vim
Overview
lib/aia/tools/vim.rb
Constant Summary collapse
- DEFAULT_PARAMETERS =
[ " ", # no parameters ].join(' ')
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
Instance Method Summary collapse
- #build_command ⇒ Object
-
#initialize(file: "") ⇒ Vim
constructor
A new instance of Vim.
- #run ⇒ Object
Methods inherited from Tools
catalog, get_meta, inherited, load_tools, #meta, meta, search_for, setup_backend, validate_tools
Constructor Details
#initialize(file: "") ⇒ Vim
Returns a new instance of Vim.
20 21 22 23 24 |
# File 'lib/aia/tools/vim.rb', line 20 def initialize(file: "") @file = file build_command end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
17 18 19 |
# File 'lib/aia/tools/vim.rb', line 17 def command @command end |
Instance Method Details
#build_command ⇒ Object
27 28 29 |
# File 'lib/aia/tools/vim.rb', line 27 def build_command @command = "#{.name} #{DEFAULT_PARAMETERS} #{@file}" end |
#run ⇒ Object
32 33 34 35 36 37 |
# File 'lib/aia/tools/vim.rb', line 32 def run # Using 'system' instead of backticks becuase # with the back ticks vim was complaining that it # was not connected to a terminal. system command end |