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.



48
49
50
51
# File 'lib/mcp/server.rb', line 48

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.



46
47
48
# File 'lib/mcp/server.rb', line 46

def method_name
  @method_name
end