public ChainedDataConverter(NativeDataConverter first, NativeDataConverter second) { super( first.isReferenceRequired() || second.isReferenceRequired(), first.isPostInvokeRequired() || second.isPostInvokeRequired()); this.upper = first; this.lower = second; }
public IRubyObject toNative(ThreadContext context, IRubyObject obj) { return lower.toNative(context, upper.toNative(context, obj)); }
public IRubyObject fromNative(ThreadContext context, IRubyObject obj) { return upper.fromNative(context, lower.fromNative(context, obj)); }
public NativeType nativeType() { return lower.nativeType(); }