module ACP::Protocol::ExtensionMethod

Defined in:

acp/protocol/client_methods.cr

Constant Summary

PREFIX = "_"

Extension method prefix as defined by the ACP spec.

Class Method Summary

Class Method Detail

def self.add_prefix(method : String) : String #

Adds the extension prefix to a method name.


[View source]
def self.extension?(method : String) : Bool #

Returns true if the given method name is an extension method.


[View source]
def self.strip_prefix(method : String) : String | Nil #

Strips the extension prefix from a method name. Returns nil if the method is not an extension method.


[View source]