Exception: MCP::Server::MethodAlreadyDefinedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mcp/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute method_name.



24
25
26
# File 'lib/mcp/server.rb', line 24

def method_name
  @method_name
end