Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Struct
/
//opt/alt/ruby21/share/ri/2.1.0/system/Struct/cdesc-Struct.ri
U:RDoc::NormalClass[iI"Struct:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I")Struct serialization/deserialization;T: @fileI"$ext/json/lib/json/add/struct.rb;T:0@omit_headings_from_table_of_contents_below0o;;[ o; ;[I"MA Struct is a convenient way to bundle a number of attributes together, ;TI"Gusing accessor methods, without having to write an explicit class.;To:RDoc::Markup::BlankLine o; ;[I"NThe Struct class generates new subclasses that hold a set of members and ;TI"Jtheir values. For each member a reader and writer method is created ;TI"%similar to Module#attr_accessor.;T@o:RDoc::Markup::Verbatim;[I"/Customer = Struct.new(:name, :address) do ;TI" def greeting ;TI" "Hello #{name}!" ;TI" end ;TI" end ;TI" ;TI"-dave = Customer.new("Dave", "123 Main") ;TI"dave.name #=> "Dave" ;TI"%dave.greeting #=> "Hello Dave!" ;T:@format0o; ;[I"LSee Struct::new for further examples of creating struct subclasses and ;TI"instances.;T@o; ;[I"MIn the method descriptions that follow a "member" parameter refers to a ;TI"Nstruct member which is either a quoted string (<code>"name"</code>) or a ;TI"!Symbol (<code>:name</code>).;T; I" struct.c;T;0; 0;0[ [U:RDoc::Constant[i I"Passwd;TI"Struct::Passwd;T00o;;[ o; ;[I"Passwd;T@o; ;[I"<Passwd is a Struct that contains the following members:;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I" name;T;[o; ;[I";contains the short login name of the user as a String.;To;;[I"passwd;T;[o; ;[I">contains the encrypted password of the user as a String. ;TI"Kan 'x' is returned if shadow passwords are in use. An '*' is returned ;TI"0if the user cannot log in using a password.;To;;[I"uid;T;[o; ;[I"4contains the integer user ID (uid) of the user.;To;;[I"gid;T;[o; ;[I"Econtains the integer group ID (gid) of the user's primary group.;To;;[I"dir;T;[o; ;[I"Econtains the path to the home directory of the user as a String.;To;;[I" shell;T;[o; ;[I"Bcontains the path to the login shell of the user as a String.;T@S:RDoc::Markup::Heading: leveli: textI"WThe following members below are optional, and must be compiled with special flags:;T@o;;;;[o;;[I" gecos;T;[o; ;[ I"?contains a longer String description of the user, such as ;TI"Ja full name. Some Unix systems provide structured information in the ;TI"0gecos field, but this is system-dependent. ;TI"8must be compiled with +HAVE_STRUCT_PASSWD_PW_GECOS+;To;;[I"change;T;[o; ;[I"Wpassword change time(integer) must be compiled with +HAVE_STRUCT_PASSWD_PW_CHANGE+;To;;[I" quota;T;[o; ;[I"Mquota value(integer) must be compiled with +HAVE_STRUCT_PASSWD_PW_QUOTA+;To;;[I"age;T;[o; ;[I"Lpassword age(integer) must be compiled with +HAVE_STRUCT_PASSWD_PW_AGE+;To;;[I" class;T;[o; ;[I"Ruser access class(string) must be compiled with +HAVE_STRUCT_PASSWD_PW_CLASS+;To;;[I"comment;T;[o; ;[I"Jcomment(string) must be compiled with +HAVE_STRUCT_PASSWD_PW_COMMENT+;To;;[I"expire;T;[o; ;[I"Zaccount expiration time(integer) must be compiled with +HAVE_STRUCT_PASSWD_PW_EXPIRE+;T; I"ext/etc/etc.c;T;0@�@cRDoc::NormalClass0U;[i I" Group;TI"Struct::Group;T00o;;[o; ;[I" Group;T@o; ;[I"QGroup is a Struct that is only available when compiled with +HAVE_GETGRENT+.;T@o; ;[I"/The struct contains the following members:;T@o;;;;[ o;;[I" name;T;[o; ;[I"0contains the name of the group as a String.;To;;[I"passwd;T;[o; ;[ I"<contains the encrypted password as a String. An 'x' is ;TI"Ireturned if password access to the group is not available; an empty ;TI"Istring is returned if no password is needed to obtain membership of ;TI"the group.;T@o; ;[I"9Must be compiled with +HAVE_STRUCT_GROUP_GR_PASSWD+.;To;;[I"gid;T;[o; ;[I"3contains the group's numeric ID as an integer.;To;;[I"mem;T;[o; ;[I"Dis an Array of Strings containing the short login names of the ;TI"members of the group.;T; @�;0@�@@�0U;[i I"Tms;TI"Struct::Tms;T00o;;[ ; I"process.c;T;0@�@@�0[[I"Enumerable;To;;[ ; @1;0I" struct.c;T[[I" class;T[[:public[[I"json_create;FI"$ext/json/lib/json/add/struct.rb;T[I"new;T@�[:protected[ [:private[ [I" instance;T[[;[[I"==;T@�[I"[];T@�[I"[]=;T@�[I"as_json;F@�[I" each;T@�[I"each_pair;T@�[I" eql?;T@�[I" hash;T@�[I"inspect;T@�[I"length;T@�[I"members;T@�[I"select;T@�[I" size;T@�[I" to_a;T@�[I" to_h;T@�[I"to_json;F@�[I" to_s;T@�[I"values;T@�[I"values_at;T@�[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[ @�@I"lib/pp.rb;T@�@1@1cRDoc::TopLevel