From 5f75616655bf9075a5d1d2570815388180128ebe Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 17 May 2023 21:09:00 +0900 Subject: [PATCH] [ruamoko] Implement -describe for Set Being able to use printf directly is nice :) --- ruamoko/lib/Set.r | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ruamoko/lib/Set.r b/ruamoko/lib/Set.r index 4786b71a7..f3234290e 100644 --- a/ruamoko/lib/Set.r +++ b/ruamoko/lib/Set.r @@ -80,6 +80,11 @@ string set_as_string (set_t *set) = #0; [super dealloc]; } +- (string) describe +{ + return set_as_string (set); +} + - (Set *) add: (unsigned) x = #0; - (Set *) remove: (unsigned) x = #0; - (Set *) invert = #0;