Class: McpAuthorization::Configuration::CategoryCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/mcp_authorization/configuration.rb

Overview

Collects summary :key, "text" declarations into a shared hash.

Instance Method Summary collapse

Constructor Details

#initialize(store) ⇒ CategoryCollector

: (Hash[Symbol, String]) -> void



246
247
248
# File 'lib/mcp_authorization/configuration.rb', line 246

def initialize(store)
  @store = store
end

Instance Method Details

#summary(category, text) ⇒ Object

: (Symbol | String, String) -> void



251
252
253
# File 'lib/mcp_authorization/configuration.rb', line 251

def summary(category, text)
  @store[category.to_sym] = text
end