summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 823d806ffd..d4236d0061 100644
--- a/proc.c
+++ b/proc.c
@@ -3097,7 +3097,12 @@ method_inspect(VALUE method)
}
}
else if (kind == keyrest) {
- rb_str_catf(str, "**%"PRIsVALUE, name);
+ if (name != ID2SYM(idPow)) {
+ rb_str_catf(str, "**%"PRIsVALUE, name);
+ }
+ else if (i > 0) {
+ rb_str_set_len(str, RSTRING_LEN(str) - 2);
+ }
}
else if (kind == block) {
if (name == ID2SYM('&')) {