Exception: MCP::Server::MethodAlreadyDefinedError
- Inherits:
-
StandardError
- Object
- StandardError
- MCP::Server::MethodAlreadyDefinedError
- Defined in:
- lib/mcp/server.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
Instance Method Summary collapse
-
#initialize(method_name) ⇒ MethodAlreadyDefinedError
constructor
A new instance of MethodAlreadyDefinedError.
Constructor Details
#initialize(method_name) ⇒ MethodAlreadyDefinedError
Returns a new instance of MethodAlreadyDefinedError.
26 27 28 29 |
# File 'lib/mcp/server.rb', line 26 def initialize(method_name) super("Method #{method_name} already defined") @method_name = method_name end |
Instance Attribute Details
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
24 25 26 |
# File 'lib/mcp/server.rb', line 24 def method_name @method_name end |