Created
May 5, 2009 20:04
-
-
Save anonymous/107171 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
class Regexp | |
def to_proc | |
lambda {|arg| match(arg)} | |
end | |
end | |
ex = %w(love me inside your face) | |
puts ex.find_all(&/^l|y|f/) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment