Created
February 16, 2016 23:27
-
-
Save linduxed/9fcd27c436d58dc84bc3 to your computer and use it in GitHub Desktop.
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
(0..3).map { |n| "/home/linduxed/foo/#{n}/bar" }.find { |f| File.exist?(f) } |
georgebrock
commented
Feb 17, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment