How to access the address of a variable in Ruby

1 Answer

0 votes
# You can't access the address of a variable in Ruby. 
# However, you can get the actual pointer value of an object using object_id.

 



answered Nov 4, 2022 by avibootz
...