-
-
Save jayrobin/5f6c40ca687388b912caa9656ad055f0 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
module FormatHelper | |
def self.included(base) | |
puts base # prints the scope where it's included | |
puts caller # prints call stack, which will point to the file that's including it | |
end | |
def phone_number | |
# return phone number | |
end | |
end | |
# Result: | |
# | |
# Object | |
# ["../mock/blueprints.rb:1:in `include'", ...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment