Class: NvimMcpServer::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/nvim-mcp-server/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



11
12
13
14
15
16
# File 'lib/nvim-mcp-server/config.rb', line 11

def initialize
  @log_level = Logger::INFO
  @config_dir = get_config_dir

  configure_logger
end

Instance Attribute Details

#log_levelObject

Returns the value of attribute log_level.



3
4
5
# File 'lib/nvim-mcp-server/config.rb', line 3

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/nvim-mcp-server/config.rb', line 3

def logger
  @logger
end

Class Method Details

.setupObject



5
6
7
8
9
# File 'lib/nvim-mcp-server/config.rb', line 5

def self.setup
  new.tap do |instance|
    yield(instance) if block_given?
  end
end