Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created December 30, 2009 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Riduidel/266041 to your computer and use it in GitHub Desktop.
Save Riduidel/266041 to your computer and use it in GitHub Desktop.
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