Instance Method インスタンスメソッド

invokeUndefinedMethod(fromWebScript:withArguments:)

Handles undefined method invocation from the scripting environment.

Declaration 宣言

func invokeUndefinedMethod(fromWebScript name: String!, 
             withArguments arguments: [Any]!) -> Any!

Parameters パラメータ

name

The name of the undefined method.

args

The arguments passed to the undefined method.

Return Value 戻り値

The result of invoking the undefined method.

Discussion 解説

This method is invoked when a script attempts to invoke a method not directly exported to the scripting environment. You should return the result of the invocation, converted appropriately for the scripting environment.

See Also 参照

Invoking methods