Class: Utils::ConfigFile::Edit
- Inherits:
-
BlockConfig
- Object
- BlockConfig
- Utils::ConfigFile::Edit
- Defined in:
- lib/utils/config_file.rb
Overview
A configuration class for editor settings.
This class manages the configuration options related to editing operations, specifically focusing on Vim editor integration. It provides functionality to configure the path to the Vim executable and default arguments used when invoking the editor.
Instance Method Summary collapse
-
#vim_path ⇒ String
The vim_path method determines the path to the vim executable.
Methods inherited from BlockConfig
config, inherited, #initialize, lazy_config, #to_ruby
Constructor Details
This class inherits a constructor from Utils::ConfigFile::BlockConfig
Instance Method Details
#vim_path ⇒ String
The vim_path method determines the path to the vim executable.
This method executes the which command to locate the vim executable in the system’s PATH and returns the resulting path after stripping any trailing whitespace.
743 |
# File 'lib/utils/config_file.rb', line 743 config :vim_path do `which vim`.chomp end |