diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-15 19:38:26 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-15 19:38:26 -0700 |
| commit | 2e937a5bba696ce851178f89af1abe9d7f2bcbc2 (patch) | |
| tree | 9aac11f767ab65b4c51adfa83d317e0cd3e885ea | |
| parent | 26926a1d52b595b99ffa26d6dfdce3526b16cb41 (diff) | |
| parent | 839d801c7a47f7a298215b66c79f9b9f0e51ea74 (diff) | |
| download | mruby-2e937a5bba696ce851178f89af1abe9d7f2bcbc2.tar.gz mruby-2e937a5bba696ce851178f89af1abe9d7f2bcbc2.zip | |
Merge pull request #1014 from takkaw/display_bo_info_in_mirb
display BasicObject information in mirb
| -rw-r--r-- | tools/mirb/mirb.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } } |
