How to reload a class in irb
Tuesday, September 16th, 2008I’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.


March 14th, 2009 at 10:49 pm
thanks i was kinda banging my head a little for the past hour/2