Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
class Example attr_accessor :test end a = Example.new
のような使用したいクラスがある場合、Exampleすべてを 1 つのファイルに保持するこの方法は、「require」を使用して別のファイルからこのクラスを取得するよりも高速ですか? もしそうなら、私たちが話している重要な違いはどれくらいですか?
Example
いいえ、速くはありません。正直、全然変わりません。
別のファイルに入れる利点は次のとおりです。
require