object_id is not changing : object_id « Reflection « Ruby






object_id is not changing


10.times { puts "test".object_id }

 

Related examples in the same category

1.Each object has its own numeric object ID.
2.Check the object_id before and after replace
3.Check the object_id before and after the assignment