@@ -299,15 +299,15 @@ public IRubyObject initialize(final ThreadContext context, IRubyObject dn, IRuby
299
299
300
300
RubyArray arr = (RubyArray )obj ;
301
301
302
- IRubyObject entry0 , entry1 , entry2 ;
303
- entry0 = arr .size () > 0 ? arr .eltOk (0 ) : context .nil ;
304
- entry1 = arr .size () > 1 ? arr .eltOk (1 ) : context .nil ;
305
- entry2 = arr .size () > 2 ? arr .eltOk (2 ) : context .nil ;
302
+ IRubyObject name , value , type ;
303
+ name = arr .size () > 0 ? arr .eltOk (0 ) : context .nil ;
304
+ value = arr .size () > 1 ? arr .eltOk (1 ) : context .nil ;
305
+ type = arr .size () > 2 ? arr .eltOk (2 ) : context .nil ;
306
306
307
- if (entry2 .isNil ()) entry2 = template .callMethod (context , "[]" , entry0 );
308
- if (entry2 .isNil ()) entry2 = _Name .getConstant ("DEFAULT_OBJECT_TYPE" );
307
+ if (type .isNil ()) type = template .callMethod (context , "[]" , name );
308
+ if (type .isNil ()) type = _Name .getConstant ("DEFAULT_OBJECT_TYPE" );
309
309
310
- add_entry (context , entry0 , entry1 , entry2 );
310
+ add_entry (context , name , value , type );
311
311
}
312
312
}
313
313
else {
@@ -494,7 +494,7 @@ public IRubyObject to_utf8(ThreadContext context) {
494
494
@ SuppressWarnings ("unchecked" )
495
495
@ JRubyMethod
496
496
public IRubyObject inspect () {
497
- return ObjectSupport .inspect (this , Collections . EMPTY_LIST );
497
+ return ObjectSupport .inspect (this , toFormat ( getRuntime (), RFC2253 ) );
498
498
}
499
499
500
500
@ Override
0 commit comments