How to create a memory leak in Ruby Stuff create from a class method it will newer be released. To run this example $ bundle install $ ruby collect_garbage.rb Watch the console