Created
July 3, 2017 23:00
-
-
Save anonymous/b16c504774c076f0ea7643e16a10a212 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/ruby | |
def mymethod my_passed_parameter | |
open("/tmp/#{my_passed_parameter}", 'w') { |f| f.puts my_passed_parameter } | |
end | |
array1 = [ 1, 2, 3, 4 ] | |
array2 = [ 5, 6, 7, 8 ] | |
array3 = [ 9, 10, 11, 12 ] | |
myarraynames = [ array1, array2, array3 ] | |
myarraynames.each { |myparam| mymethod myparam } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment