private static IRubyObject setupPasswd(Ruby runtime, Passwd passwd) { IRubyObject[] args = new IRubyObject[] { runtime.newString(passwd.getLoginName()), runtime.newString(passwd.getPassword()), runtime.newFixnum(passwd.getUID()), runtime.newFixnum(passwd.getGID()), runtime.newString(passwd.getGECOS()), runtime.newString(passwd.getHome()), runtime.newString(passwd.getShell()), runtime.newFixnum(passwd.getPasswdChangeTime()), runtime.newString(passwd.getAccessClass()), runtime.newFixnum(passwd.getExpire()) }; return RubyStruct.newStruct(runtime.getPasswdStruct(), args, Block.NULL_BLOCK); }