public static IOOptions newIOOptions(Ruby runtime, ModeFlags modeFlags) { return new IOOptions(modeFlags); }
public static IOOptions newIOOptions(Ruby runtime, ModeFlags modeFlags) { return new IOOptions(modeFlags); }
public static IOOptions newIOOptions(Ruby runtime, ModeFlags modeFlags) { return new IOOptions(modeFlags); }
public static IOOptions newIOOptions(Ruby runtime, ModeFlags modeFlags) { return new IOOptions(modeFlags); }
public static IOOptions newIOOptions(Ruby runtime, String mode) { try { return new IOOptions(runtime, mode); } catch (InvalidValueException ive) { // This is used by File and StringIO, which seem to want an ArgumentError instead of EINVAL throw runtime.newArgumentError("illegal access mode " + mode); } }
public static IOOptions newIOOptions(Ruby runtime, String mode) { try { return new IOOptions(runtime, mode); } catch (InvalidValueException ive) { // This is used by File and StringIO, which seem to want an ArgumentError instead of EINVAL throw runtime.newArgumentError("illegal access mode " + mode); } }
public static IOOptions newIOOptions(Ruby runtime, String mode) { try { return new IOOptions(runtime, mode); } catch (InvalidValueException ive) { // This is used by File and StringIO, which seem to want an ArgumentError instead of EINVAL throw runtime.newArgumentError("illegal access mode " + mode); } }
public static IOOptions newIOOptions(Ruby runtime, String mode) { try { return new IOOptions(runtime, mode); } catch (InvalidValueException ive) { // This is used by File and StringIO, which seem to want an ArgumentError instead of EINVAL throw runtime.newArgumentError("illegal access mode " + mode); } }
public static IOOptions newIOOptions(Ruby runtime, int mode) { try { ModeFlags modeFlags = new ModeFlags(mode); return new IOOptions(modeFlags); } catch (InvalidValueException ive) { throw runtime.newErrnoEINVALError(); } }
public static IOOptions newIOOptions(Ruby runtime, int mode) { try { ModeFlags modeFlags = new ModeFlags(mode); return new IOOptions(modeFlags); } catch (InvalidValueException ive) { throw runtime.newErrnoEINVALError(); } }
public static IOOptions newIOOptions(Ruby runtime, int mode) { try { ModeFlags modeFlags = new ModeFlags(mode); return new IOOptions(modeFlags); } catch (InvalidValueException ive) { throw runtime.newErrnoEINVALError(); } }
public static IOOptions newIOOptions(Ruby runtime, int mode) { try { ModeFlags modeFlags = new ModeFlags(mode); return new IOOptions(modeFlags); } catch (InvalidValueException ive) { throw runtime.newErrnoEINVALError(); } }
public static IOOptions newIOOptions(Ruby runtime, IOOptions oldFlags, int orOflags) { try { return new IOOptions(new ModeFlags(oldFlags.getModeFlags().getFlags() | orOflags)); } catch (InvalidValueException ive) { throw runtime.newErrnoEINVALError(); } }
public static IOOptions newIOOptions(Ruby runtime, IOOptions oldFlags, int orOflags) { try { return new IOOptions(new ModeFlags(oldFlags.getModeFlags().getFlags() | orOflags)); } catch (InvalidValueException ive) { throw runtime.newErrnoEINVALError(); } }
public static IOOptions newIOOptions(Ruby runtime, IOOptions oldFlags, int orOflags) { try { return new IOOptions(new ModeFlags(oldFlags.getModeFlags().getFlags() | orOflags)); } catch (InvalidValueException ive) { throw runtime.newErrnoEINVALError(); } }
public static IOOptions newIOOptions(Ruby runtime, IOOptions oldFlags, int orOflags) { try { return new IOOptions(new ModeFlags(oldFlags.getModeFlags().getFlags() | orOflags)); } catch (InvalidValueException ive) { throw runtime.newErrnoEINVALError(); } }
protected IOOptions parseIOOptions(IRubyObject arg) { Ruby runtime = getRuntime(); if (arg instanceof RubyFixnum) return newIOOptions(runtime, (int) RubyFixnum.fix2long(arg)); String modeString = arg.convertToString().toString(); try { return new IOOptions(runtime, modeString); } catch (InvalidValueException ive) { throw runtime.newArgumentError("invalid access mode " + modeString); } }
protected IOOptions parseIOOptions(IRubyObject arg) { Ruby runtime = getRuntime(); if (arg instanceof RubyFixnum) return newIOOptions(runtime, (int) RubyFixnum.fix2long(arg)); String modeString = arg.convertToString().toString(); try { return new IOOptions(runtime, modeString); } catch (InvalidValueException ive) { throw runtime.newArgumentError("invalid access mode " + modeString); } }
protected IOOptions parseIOOptions19(IRubyObject arg) { Ruby runtime = getRuntime(); if (arg instanceof RubyFixnum) return newIOOptions(runtime, (int) RubyFixnum.fix2long(arg)); String modeString = arg.convertToString().toString(); try { return new IOOptions(runtime, modeString); } catch (InvalidValueException ive) { throw runtime.newArgumentError("invalid access mode " + modeString); } }
protected IOOptions parseIOOptions19(IRubyObject arg) { Ruby runtime = getRuntime(); if (arg instanceof RubyFixnum) return newIOOptions(runtime, (int) RubyFixnum.fix2long(arg)); String modeString = arg.convertToString().toString(); try { return new IOOptions(runtime, modeString); } catch (InvalidValueException ive) { throw runtime.newArgumentError("invalid access mode " + modeString); } }