U:RDoc::NormalClass[iI" Struct:ET@I" Object;To:RDoc::Markup::Document: @parts[o;;[: @fileI"$ext/json/lib/json/add/struct.rb;T:0@omit_headings_from_table_of_contents_below0o;;[ o:RDoc::Markup::Paragraph;[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::BlankLineo; ;[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"NIn the method descriptions that follow, a "member" parameter refers to a ;TI"Nstruct member which is either a quoted string ("name") or a ;TI"!Symbol (:name).;T; I" struct.c;T; 0; 0; 0[[U:RDoc::Constant[iI" Passwd;TI"Struct::Passwd;T00o;;[ o; ;[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;[iI" 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"