private static void defineGroupStruct(Ruby runtime) { IRubyObject[] args = new IRubyObject[] { runtime.newString("Group"), runtime.newSymbol("name"), runtime.newSymbol("passwd"), runtime.newSymbol("gid"), runtime.newSymbol("mem") }; runtime.setGroupStruct(RubyStruct.newInstance(runtime.getStructClass(), args, Block.NULL_BLOCK)); runtime.getEtc().defineConstant("Group", runtime.getGroupStruct()); }
private static void defineGroupStruct(Ruby runtime) { IRubyObject[] args = new IRubyObject[] { runtime.newString("Group"), runtime.newSymbol("name"), runtime.newSymbol("passwd"), runtime.newSymbol("gid"), runtime.newSymbol("mem") }; runtime.setGroupStruct(RubyStruct.newInstance(runtime.getStructClass(), args, Block.NULL_BLOCK)); runtime.getEtc().defineConstant("Group", runtime.getGroupStruct()); }
private static void defineGroupStruct(Ruby runtime) { IRubyObject[] args = new IRubyObject[] { runtime.newString("Group"), runtime.newSymbol("name"), runtime.newSymbol("passwd"), runtime.newSymbol("gid"), runtime.newSymbol("mem") }; runtime.setGroupStruct(RubyStruct.newInstance(runtime.getStructClass(), args, Block.NULL_BLOCK)); if (runtime.is1_9()) { runtime.getEtc().defineConstant("Group", runtime.getGroupStruct()); } }
private static void defineGroupStruct(Ruby runtime) { IRubyObject[] args = new IRubyObject[] { runtime.newString("Group"), runtime.newSymbol("name"), runtime.newSymbol("passwd"), runtime.newSymbol("gid"), runtime.newSymbol("mem") }; runtime.setGroupStruct(RubyStruct.newInstance(runtime.getStructClass(), args, Block.NULL_BLOCK)); if (runtime.is1_9()) { runtime.getEtc().defineConstant("Group", runtime.getGroupStruct()); } }