Created
November 26, 2008 01:15
-
-
Save drio/29213 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
def valid_run?(d) | |
%w{\. \.. qc test}.inject(true) { |prev, n| prev && (/#{n}/ =~ d) != 0 } | |
end | |
puts "drio VALID run?: " + valid_run?('drio').to_s | |
puts "test VALID run?: " + valid_run?('test_solid').to_s | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment