Created
October 28, 2014 15:02
-
-
Save b-murphy/a54a173633a404cd54e1 to your computer and use it in GitHub Desktop.
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
# what's the expectation for the require within constant (non global state) | |
# like this? | |
require "mary.rb" | |
Bob = Module.new {} | |
# Or this? | |
Bob = Module.new { | |
require('mary.rb') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I do, I was just trying to get the context of better_require, I was having a dig around MRI files, to see the inner workings :-)