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 usingrequire
phone call it's easier maintain track of things , maintain if need to. ruby require
Comments
Post a Comment