Skip to content

Instantly share code, notes, and snippets.

@cyrilchampier
Created December 19, 2018 16:53
Show Gist options
  • Save cyrilchampier/9cf02f56c693d7510a85a16e7699a265 to your computer and use it in GitHub Desktop.
Save cyrilchampier/9cf02f56c693d7510a85a16e7699a265 to your computer and use it in GitHub Desktop.
exemple of mutated const
module A
MY_CONST = 'my_value'
def self.func1
func2(MY_CONST)
MY_CONST == 'my_value'
end
def self.func2(string)
string.next!
end
end
A.func1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment