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
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue