Skip to content

Instantly share code, notes, and snippets.

@geelen
Created December 17, 2010 07:32
Show Gist options
  • Save geelen/744618 to your computer and use it in GitHub Desktop.
Save geelen/744618 to your computer and use it in GitHub Desktop.
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())
NOT MATCHED!
MATCHED!
NOT MATCHED!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment