Zeitwerk outside of rails: Revision history

From wikinotes

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 July 2023

  • curprev 01:2501:25, 29 July 2023Will talk contribs 867 bytes +867 Created page with "= In Gems = <blockquote> == initializing zeitwerk== <blockquote> <syntaxhighlight lang="ruby"> # my-project/lib/my_project.rb # load gems that may not load otherwise (ex.) require "sorbet-runtime" require "active_support/all" # load zeitwerk require "zeitwerk" loader = Zeitwerk::Loader.for_gem loader.enable_reloading loader.setup loader.eager_load # define your root module module MyProject end </syntaxhighlight> </blockquote><!-- initializing zeitwerk--> == console s..."