From: Rob Biedenharn Date: 2011-09-21T04:17:58+09:00 Subject: Re: require command On Sep 20, 2011, at 3:14 PM, Aya Abdelsalam wrote: > Hello > I am using ruby192 and when ever i use "require" to load another saved > module it doesn't work how ever "load" works perfectly > Why is that? How can i fix this? and will this affect my code when i > start using gems? > Thanks > > -- Well, typically it's: require "some_file" and load "some_file.rb" Also, know that require only pulls the file in the first time, while load will read (and execute) the source file every time. -Rob Rob Biedenharn Rob@AgileConsultingLLC.com http://AgileConsultingLLC.com/ rab@GaslightSoftware.com http://GaslightSoftware.com/