ruby - Speed of a program using 'require' -



ruby - Speed of a program using 'require' -

class illustration attr_accessor :test end = example.new

if have class want use, example, way of holding in 1 file, faster using 'require' class different file? if so, how important difference talking about?

no. isn't faster. honestly, doesn't create difference @ all.

the advantage putting in separate file that:

other files can utilize using require phone call it's easier maintain track of things , maintain if need to.

ruby require

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -