core/src/main/java/org/jruby/RubyEnumerable.java
static IRubyObject packEnumValues(ThreadContext context, IRubyObject[] args) {
        switch (args.length) {
            case 0:  return context.nil;
            case 1:  return args[0];
            default: return RubyArray.newArrayMayCopy(context.runtime, args);
        }
    }
/**
     * Package the arguments appropriately depending on how many there are
     * Corresponds to rb_enum_values_pack in MRI
     */
Package the arguments appropriately depending on how many there are
Corresponds to rb_enum_values_pack in MRI
Package the arguments appropriately depending on how many there are Corresponds to rb_enum_values_pack in MRI
static IRubyObject packEnumValues(ThreadContext context, IRubyObject[] args) {
        switch (args.length) {
            case 0:  return context.nil;
            case 1:  return args[0];
            default: return RubyArray.newArrayMayCopy(context.runtime, args);
        }
    }
static IRubyObject packEnumValues ( ThreadContext context , IRubyObject [ ] args ) { switch ( args . length ) { case 0 : return context . nil ; case 1 : return args [ 0 ] ; default : return RubyArray . newArrayMayCopy ( context . runtime , args ) ; } }
Package the arguments appropriately depending on how many there are
 Corresponds to rb_enum_values_pack in MRI
Package the arguments appropriately depending on how many there are Corresponds to rb_enum_values_pack in MRI