|
obj = script("MyClass").new()
|
|
put obj.handlers()
|
|
-- [#foo, #bar]
|
|
|
|
-- The returned list contains the object's methods ("handlers") as "symbols".
|
|
-- Those can be used like this to call the corresponding method:
|
|
call(#foo, obj)
|
|
-- "foo"
|
|
|
|
call(#bar, obj)
|
|
-- "bar"
|