When to use "load" rather than "require" in Ruby? -


i understand require loads file once, while load loads every time called.

it looks using require preferable in situations.

my question is, when use load rather require ?

if need force reload (a common example web server or test server). should use autoload when there reasonable chance piece of code won't hit, or want address app load time issues. should use require @ other times.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -