Created
December 30, 2009 13:26
-
-
Save Riduidel/266041 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 Signature | |
# ... il y a aussi du code avant | |
def compute(_sentence) | |
returned = 0 | |
_sentence.each do |word| | |
if @keywords.include?(word) | |
returned+=@keywords\[word\] | |
end | |
end | |
returned | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment