@JRubyMethod public IRubyObject pop(ThreadContext context, IRubyObject num) { modifyCheck(); RubyArray result = makeSharedFirst(context, num, true, context.runtime.getArray()); realLength -= result.realLength; return result; }
@JRubyMethod(name = "shift") public IRubyObject shift(ThreadContext context, IRubyObject num) { modify(); RubyArray result = makeSharedFirst(context, num, false, context.runtime.getArray()); int n = result.realLength; begin += n; realLength -= n; return result; }
@JRubyMethod public IRubyObject pop(ThreadContext context, IRubyObject num) { modifyCheck(); RubyArray result = makeSharedFirst(context, num, true, context.runtime.getArray()); realLength -= result.realLength; return result; }
@JRubyMethod(name = "shift") public IRubyObject shift(ThreadContext context, IRubyObject num) { modify(); RubyArray result = makeSharedFirst(context, num, false, context.runtime.getArray()); int n = result.realLength; begin += n; realLength -= n; return result; }
@JRubyMethod(name = "shift") public IRubyObject shift(ThreadContext context, IRubyObject num) { unpack(); modify(); RubyArray result = makeSharedFirst(context, num, false, context.runtime.getArray()); int n = result.realLength; begin += n; realLength -= n; return result; }
@JRubyMethod(name = "shift") public IRubyObject shift(ThreadContext context, IRubyObject num) { unpack(); modify(); RubyArray result = makeSharedFirst(context, num, false, context.runtime.getArray()); int n = result.realLength; begin += n; realLength -= n; return result; }
@JRubyMethod public IRubyObject pop(ThreadContext context, IRubyObject num) { unpack(); modifyCheck(); RubyArray result = makeSharedFirst(context, num, true, context.runtime.getArray()); realLength -= result.realLength; return result; }
@JRubyMethod public IRubyObject pop(ThreadContext context, IRubyObject num) { unpack(); modifyCheck(); RubyArray result = makeSharedFirst(context, num, true, context.runtime.getArray()); realLength -= result.realLength; return result; }