Created
July 1, 2011 08:00
-
-
Save pcarrier/1058069 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/env ruby | |
%w{foo Chihiro bar z0rk}.each do |word| | |
case word | |
when *[/[A-Z]/, /[0-9]/] | |
puts w | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment