EncodingUtils.ioExtractEncodingOption(context, Tempfile.this, options, null);
EncodingUtils.ioExtractEncodingOption(context, Tempfile.this, options, null);
protected void ecopts(ThreadContext context, IRubyObject opts) { if (!opts.isNil()) { EncodingUtils.ioExtractEncodingOption(context, this, opts, null); } if (enc2 != null) { IRubyObject[] outOpts = new IRubyObject[]{opts}; ecflags = EncodingUtils.econvPrepareOpts(context, opts, outOpts); ec = EncodingUtils.econvOpenOpts(context, enc.getName(), enc2.getName(), ecflags, opts); ecopts = opts; } }
protected void ecopts(ThreadContext context, IRubyObject opts) { if (!opts.isNil()) { EncodingUtils.ioExtractEncodingOption(context, this, opts, null); } if (enc2 != null) { IRubyObject[] outOpts = new IRubyObject[]{opts}; ecflags = EncodingUtils.econvPrepareOpts(context, opts, outOpts); ec = EncodingUtils.econvOpenOpts(context, enc.getName(), enc2.getName(), ecflags, opts); ecopts = opts; } }
protected void ecopts(ThreadContext context, IRubyObject opts) { if (!opts.isNil()) { EncodingUtils.ioExtractEncodingOption(context, this, opts, null); } if (enc2 != null) { IRubyObject[] outOpts = new IRubyObject[]{opts}; ecflags = EncodingUtils.econvPrepareOpts(context, opts, outOpts); ec = EncodingUtils.econvOpenOpts(context, enc.getName(), enc2.getName(), ecflags, opts); ecopts = opts; } }
protected void ecopts(ThreadContext context, IRubyObject opts) { if (!opts.isNil()) { EncodingUtils.ioExtractEncodingOption(context, this, opts, null); } if (enc2 != null) { IRubyObject[] outOpts = new IRubyObject[]{opts}; ecflags = EncodingUtils.econvPrepareOpts(context, opts, outOpts); ec = EncodingUtils.econvOpenOpts(context, enc.getName(), enc2.getName(), ecflags, opts); ecopts = opts; } }
if (ioExtractEncodingOption(context, ioEncodable, options, fmode_p)) { if (hasEnc) throw context.runtime.newArgumentError("encoding specified twice");
if (ioExtractEncodingOption(context, ioEncodable, options, fmode_p)) { if (hasEnc) throw context.runtime.newArgumentError("encoding specified twice");
EncodingUtils.ioExtractEncodingOption(context, this, options, null);
EncodingUtils.ioExtractEncodingOption(context, this, options, null);
EncodingUtils.ioExtractEncodingOption(context, this, options, null);
EncodingUtils.ioExtractEncodingOption(context, this, options, null);
if (ioExtractEncodingOption(context, ioEncodable, options, fmode_p)) { if (hasEnc) throw runtime.newArgumentError("encoding specified twice");
if (ioExtractEncodingOption(context, ioEncodable, options, fmode_p)) { if (hasEnc) throw runtime.newArgumentError("encoding specified twice");