Garbage Collection in Ruby?

  • Ruby has automatic garbage collection.
  • It removes objects from memory that are no longer referenced.
  • This prevents memory leaks.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *