public RubyIO(Ruby runtime, RubyClass klass, Channel channel) { super(runtime, klass); // We only want IO objects with valid streams (better to error now). if (channel == null) { throw runtime.newRuntimeError("Opening null channel"); } ThreadContext context = runtime.getCurrentContext(); initializeCommon(context, new ChannelFD(channel, runtime.getPosix(), runtime.getFilenoUtil()), runtime.newFixnum(ModeFlags.oflagsFrom(runtime.getPosix(), channel)), context.nil); }
public RubyIO(Ruby runtime, RubyClass klass, Channel channel) { super(runtime, klass); // We only want IO objects with valid streams (better to error now). if (channel == null) { throw runtime.newRuntimeError("Opening null channel"); } ThreadContext context = runtime.getCurrentContext(); initializeCommon(context, new ChannelFD(channel, runtime.getPosix(), runtime.getFilenoUtil()), runtime.newFixnum(ModeFlags.oflagsFrom(runtime.getPosix(), channel)), context.nil); }
oflags_p[0] = ModeFlags.oflagsFrom(runtime.getPosix(), fd.ch);
oflags_p[0] = ModeFlags.oflagsFrom(runtime.getPosix(), fd.ch);