U:RDoc::AnyMethod[iI"[]=:ETI"Struct#[]=;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KAttribute Assignment---Sets the value of the given struct +member+ or ;TI"Qthe member at the given +index+. Raises NameError if the +member+ does not ;TI"9exist and IndexError if the +index+ is out of range.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"2Customer = Struct.new(:name, :address, :zip) ;TI"Ejoe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) ;TI" ;TI"joe["name"] = "Luke" ;TI"joe[:zip] = "90210" ;TI" ;TI"joe.name #=> "Luke" ;TI"joe.zip #=> "90210";T: @format0: @fileI" struct.c;T:0@omit_headings_from_table_of_contents_below0I"Cstruct[member] = obj -> obj struct[index] = obj -> obj ;T0[I" (p1, p2);T@FI" Struct;TcRDoc::NormalClass00