D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Struct
/
Filename :
hash-i.ri
back
Copy
U:RDoc::AnyMethod[iI" hash:ETI"Struct#hash;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"/Returns the integer hash value for +self+.;To:RDoc::Markup::BlankLine o; ; [I"=Two structs of the same class and with the same content ;TI"Gwill have the same hash code (and will compare using Struct#eql?):;T@o:RDoc::Markup::Verbatim; [I"2Customer = Struct.new(:name, :address, :zip) ;TI"Hjoe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) ;TI"Hjoe_jr = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) ;TI"'joe.hash == joe_jr.hash # => true ;TI"&joe_jr[:name] = 'Joe Smith, Jr.' ;TI"(joe.hash == joe_jr.hash # => false ;T:@format0o; ; [I"Related: Object#hash.;T: @fileI" struct.c;T:0@omit_headings_from_table_of_contents_below0I"hash -> integer ;T0[ I"();T@FI"Struct;TcRDoc::NormalClass00