Rewrite extend self to class << self
This commit is contained in:
parent
127f12f740
commit
9a00406fae
1 changed files with 33 additions and 33 deletions
|
|
@ -43,8 +43,7 @@ module MCP
|
|||
end
|
||||
end
|
||||
|
||||
extend self
|
||||
|
||||
class << self
|
||||
def ensure_capability!(method, capabilities)
|
||||
case method
|
||||
when PROMPTS_GET, PROMPTS_LIST
|
||||
|
|
@ -81,4 +80,5 @@ module MCP
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue