Created
April 12, 2013 17:20
-
-
Save 1dolinski/5373615 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
require 'string_score/ext/string' | |
"JAMES DOWNY".downcase.score("Downy, James".downcase) | |
#=> 0 | |
"JAMES DOWNY".downcase.score("James Downy".downcase) | |
#=> 1 | |
"JAMES DOWNY".downcase.score("James, Downy".downcase) | |
# w the comma | |
#=> 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment