Created
October 8, 2019 15:41
-
-
Save choallin/ebeb4511a0d40ff2ae6c40e3db927a39 to your computer and use it in GitHub Desktop.
lexical_scoping
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
def test_method | |
method_variable = 4 | |
different_variable = [1,2,3] | |
different_variable.map do |number| | |
number * method_variable | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment