class Example
attr_accessor :test
end
a = Example.new
If I have a class I want to use, like Example, is this way of holding everything in one file, faster than using ‘require’ to get this class from a different file? If so, how significant a difference are we talking about?
No. It isn’t faster. Honestly, it doesn’t make a difference at all.
The advantage you get putting it in a separate file is that:
requirecall