Created
January 4, 2017 15:37
-
-
Save dwbutler/2c5739f611cd2ada793a66944cfa8381 to your computer and use it in GitHub Desktop.
Check where a constant got changed
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
class Config | |
CONSTANT = 1 | |
def CONSTANT=(val) | |
fail | |
end | |
end | |
config = Config.new | |
config.CONSTANT = 2 | |
# constant.rb:5:in `CONSTANT=': unhandled exception | |
# from constant.rb:10:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment