3 ms·
You can already do that with ruby bundler (which perhaps inspired it) https://bundler.io/guides/bundler_in_a_single_file_ruby_script.html https://bundler.io/gu
by jrochkind1 2y ago
You can already do that with ruby bundler (which perhaps inspired it)
https://bundler.io/guides/bundler_in_a_single_file_ruby_script.html https://bundler.io/guides/bundler_in_a_single_file_ruby_scri...
But I recognize that isn't quite what the questioner is asking, because at least in ruby you are still going to need "require" statements (unless you have an autoloader) to actually load the code, the inline `gemfile` specifies your dependencies, which is different than a require/import statement to actually load code from possibly one of those dependencies.