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.



126
127
128
129
# File 'lib/mcp/server.rb', line 126

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.



124
125
126
# File 'lib/mcp/server.rb', line 124

def method_name
  @method_name
end