Method: ActionMCP::Tool.inherited
- Defined in:
- lib/action_mcp/tool.rb
.inherited(subclass) ⇒ Object
Hook called when a class inherits from Tool
87 88 89 90 91 92 93 |
# File 'lib/action_mcp/tool.rb', line 87 def inherited(subclass) super # Run the ActiveSupport load hook when a tool is defined subclass.class_eval do ActiveSupport.run_load_hooks(:action_mcp_tool, subclass) end end |