Created
December 17, 2010 07:32
-
-
Save geelen/744618 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
module Patterns | |
def foo(a, " ") | |
"MATCHED!".puts() | |
end | |
def foo(a, b) | |
"NOT MATCHED!".puts() | |
end | |
end | |
Patterns.foo("shouldn't", "match") | |
Patterns.foo("should match", " ") | |
Patterns.foo("should also match but doesn't", " ".to_list().to_string()) |
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
NOT MATCHED! | |
MATCHED! | |
NOT MATCHED! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment