Class: NvimMcpServer::Config
- Inherits:
-
Object
- Object
- NvimMcpServer::Config
- Defined in:
- lib/nvim-mcp-server/config.rb
Instance Attribute Summary collapse
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_level ⇒ Object
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 |
#logger ⇒ Object
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
.setup ⇒ Object
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 |