Module: Protege::Generators::ExtensionNaming
- Included in:
- HookGenerator, PersonaGenerator, ProviderGenerator, ResolverGenerator, ToolGenerator
- Defined in:
- lib/generators/protege/extension_naming.rb
Overview
Shared naming helpers for the extension scaffold generators (+tool+, resolver, hook,
provider). Host apps name Protege extensions by a type suffix — SendEmailTool,
ThreadHistoryResolver, EventLoggerHook, OpenRouterProvider — so these helpers derive the
final class and file names from whatever the developer typed, idempotently applying the suffix.
The suffix is applied whether or not it was supplied, so all three of send_email, SendEmail,
and SendEmailTool resolve to class SendEmailTool / file send_email_tool.rb. Pass an empty
suffix (as the persona generator does) to use the name verbatim.