How to reload a class in irb

Tuesday, September 16th, 2008

I’m working interactively in irb, and I tweak the class to make changes. The changes won’t be reflected in the irb session unless you reload the class.


irb >> load 'document.rb'

Make sure to add the file extension. Unlike require, load needs the full filename.

One Response to “How to reload a class in irb”

  1. tom_j Says:

    thanks i was kinda banging my head a little for the past hour/2

Leave a Reply