RosettaCodeData/Task/Reflection-List-methods/Ecstasy/reflection-list-methods.ecstasy
2024-07-13 15:19:22 -07:00

14 lines
450 B
Text

module test {
void run() {
@Inject Console console;
String[] names = &this.actualType.multimethods.keys.toArray();
console.print($"Method/function names on {this}: {names}");
Method[] methods = &this.actualType.methods;
console.print($"The methods of {this}: {methods}");
Function[] functions = &this.actualType.functions;
console.print($"The functions of {this}: {functions}");
}
}