File: //usr/share/ri/3.0.0/system/Object/object_id-i.ri
U:RDoc::AnyMethod[iI"object_id:ETI"Object#object_id;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"-Returns an integer identifier for +obj+.;To:RDoc::Markup::BlankLine o;
; [I"NThe same number will be returned on all calls to +object_id+ for a given ;TI"8object, and no two active objects will share an id.;T@o;
; [I"MNote: that some objects of builtin classes are reused for optimization. ;TI"FThis is the case for immediate values and frozen string literals.;T@o;
; [I"DBasicObject implements +__id__+, Kernel implements +object_id+.;T@o;
; [I"KImmediate values are not passed by reference but are passed by value: ;TI"?+nil+, +true+, +false+, Fixnums, Symbols, and some Floats.;T@o:RDoc::Markup::Verbatim; [ I"?Object.new.object_id == Object.new.object_id # => false
;TI">(21 * 2).object_id == (21 * 2).object_id # => true
;TI"?"hello".object_id == "hello".object_id # => false
;TI"="hi".freeze.object_id == "hi".freeze.object_id # => true;T:@format0:
@fileI" gc.c;T:0@omit_headings_from_table_of_contents_below0I"=obj.__id__ -> integer
obj.object_id -> integer
;T0[ I"();T@$FI"Object;TcRDoc::NormalClass00