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

Returns a new instance of CategoryCollector.

Signature:

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



277
278
279
# File 'lib/mcp_authorization/configuration.rb', line 277

def initialize(store)
  @store = store
end

Instance Method Details

#summary(category, text) ⇒ Object

Signature:

  • (Symbol | String, String) -> void



282
283
284
# File 'lib/mcp_authorization/configuration.rb', line 282

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