module
ACP::Protocol::ExtensionMethod
Defined in:
acp/protocol/client_methods.crConstant Summary
-
PREFIX =
"_" -
Extension method prefix as defined by the ACP spec.
Class Method Summary
-
.add_prefix(method : String) : String
Adds the extension prefix to a method name.
-
.extension?(method : String) : Bool
Returns true if the given method name is an extension method.
-
.strip_prefix(method : String) : String | Nil
Strips the extension prefix from a method name.
Class Method Detail
def self.extension?(method : String) : Bool
#
Returns true if the given method name is an extension method.
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.