module Invokable

Overview

Invokable supports calling member function of a JavaScript's Object. In short, it make this usable.

my_object["function"].as(JSCFunction).call(args...) # in this case, JavaScript `this` will be undefined.
# uses Invokeable#invoke instead.
my_object.invoke "function", arg1, arg2, ...

Direct including types

Defined in:

components/invokable.cr

Instance Method Summary

Instance Method Detail

def invoke(name : String, *args) #

[View source]