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
A new instance of CategoryCollector.
- #summary(category, text) ⇒ Object
Constructor Details
#initialize(store) ⇒ CategoryCollector
Returns a new instance of CategoryCollector.
277 278 279 |
# File 'lib/mcp_authorization/configuration.rb', line 277 def initialize(store) @store = store end |
Instance Method Details
#summary(category, text) ⇒ Object
282 283 284 |
# File 'lib/mcp_authorization/configuration.rb', line 282 def summary(category, text) @store[category.to_sym] = text end |