From: Heikki Kupiainen Date: 2006-08-06T22:03:10+09:00 Subject: reloading required modules in irb Hi, I use irb to evaluate my code while programming. So it is easy to test my class this way: > require "my_class" > c = MyClass.new > c.some_method But the problem occurs when I now edit the class adding a new method "new_method". If I then type: > c.new_method NoMethodError: undefined method :'new_method' How can i now re-require "my_class" without restarting irb? typing again the require command doesn't seem to reload MyClass: > require "my_class" Nothing happens! The class is not reloaded into memory. Please tell me somebody how I can refresh the required class! -- Posted via http://www.ruby-forum.com/.