Created
December 19, 2018 16:53
-
-
Save cyrilchampier/9cf02f56c693d7510a85a16e7699a265 to your computer and use it in GitHub Desktop.
exemple of mutated const
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 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