Created
March 29, 2016 14:09
-
-
Save anonymous/1419c67c73795b69f9ac 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
dir = Dir.entries('./') | |
puts dir | |
exists = dir.include?('*.pdf') | |
puts exists | |
______________ | |
The dir array: | |
. | |
.. | |
excel.rb | |
excel.xlsx | |
test.rb | |
tester.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment