Python has modules and packages, and packages have __init__.py
file, so if I import a package called foo
, the interpreter will look for foo/__init__.py
.
I came across some ruby code that will include not a module but a directory: require 'core/utilts'
. The core
and utilts
are directories, not single module files. What is the equivalent in ruby to the file __init__.py
, or what are the files that are executed when I require a directory like this utilts
dir? There are a lot of ruby files under it.