/** * Variation of getValue that checks for nulls, returning and setting the given value (presumably nil) */ public IRubyObject getValueOrNil(int offset, int depth, IRubyObject nil) { if (depth > 0) { return parent.getValueOrNil(offset, depth - 1, nil); } else { return getValueDepthZeroOrNil(offset, nil); } }
/** * Variation of getValue that checks for nulls, returning and setting the given value (presumably nil) */ public IRubyObject getValueOrNil(int offset, int depth, IRubyObject nil) { if (depth > 0) { return parent.getValueOrNil(offset, depth - 1, nil); } else { return getValueDepthZeroOrNil(offset, nil); } }
flipScope.growIfNeeded(); IRubyObject result = flipScope.getValueDepthZeroOrNil(index, nil);
flipScope.growIfNeeded(); IRubyObject result = flipScope.getValueDepthZeroOrNil(index, nil);