From 839d801c7a47f7a298215b66c79f9b9f0e51ea74 Mon Sep 17 00:00:00 2001 From: takkaw Date: Mon, 11 Mar 2013 23:05:12 +0900 Subject: display BasicObject information in mirb --- tools/mirb/mirb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c index c20c788e4..bd03a6534 100644 --- a/tools/mirb/mirb.c +++ b/tools/mirb/mirb.c @@ -261,6 +261,9 @@ main(void) else { /* no */ printf(" => "); + if (!mrb_respond_to(mrb,result,mrb_intern(mrb,"inspect"))){ + result = mrb_any_to_s(mrb,result); + } p(mrb, result); } } -- cgit v1.2.3