Rewrite extend self to class << self

This commit is contained in:
Kevin Fischer 2025-06-15 17:21:42 +09:00
commit 9a00406fae
No known key found for this signature in database
GPG key ID: 8E4CB46A9AC8D1C1

View file

@ -43,8 +43,7 @@ module MCP
end end
end end
extend self class << self
def ensure_capability!(method, capabilities) def ensure_capability!(method, capabilities)
case method case method
when PROMPTS_GET, PROMPTS_LIST when PROMPTS_GET, PROMPTS_LIST
@ -82,3 +81,4 @@ module MCP
end end
end end
end end
end