Quantcast
Channel: Dave Copeland :ruby:
Viewing all articles
Browse latest Browse all 613

Article 1

$
0
0

Let's say I am organizing my Ruby code with namespaces and files. Assuming one class per file, and Zeitwerk-style naming conventions are followed, what's the right way to set up the use of `require` so require "my_gem" works?

Options are here: gist.github.com/davetron5000/8

gem.rb requires down
gem’s individual files require up
something else


Viewing all articles
Browse latest Browse all 613