Skip to content

Instantly share code, notes, and snippets.

@dwbutler
Created January 4, 2017 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwbutler/2c5739f611cd2ada793a66944cfa8381 to your computer and use it in GitHub Desktop.
Save dwbutler/2c5739f611cd2ada793a66944cfa8381 to your computer and use it in GitHub Desktop.
Check where a constant got changed
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