Class: McpAuthorization::Configuration::CategoryCollector
- Inherits:
-
Object
- Object
- McpAuthorization::Configuration::CategoryCollector
- Defined in:
- lib/mcp_authorization/configuration.rb
Overview
Collects summary :key, "text" declarations into a shared hash.
Instance Method Summary collapse
-
#initialize(store) ⇒ CategoryCollector
constructor
: (Hash[Symbol, String]) -> void.
-
#summary(category, text) ⇒ Object
: (Symbol | String, String) -> void.
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 |