-
-
Save Fire-Dragon-DoL/0f94f930346f43fa38af to your computer and use it in GitHub Desktop.
How does this not become a circular dependency?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'b' | |
module A | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'a' | |
module A | |
module B | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOAD_PATH << File.expand_path('../', __FILE__) | |
require 'b' | |
puts A::B.to_s | |
puts A.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment