Guest User

Untitled

a guest
Apr 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. class Signature
  2. # ... il y a aussi du code avant
  3. def compute(_sentence)
  4. returned = 0
  5. _sentence.each do |word|
  6. if @keywords.include?(word)
  7. returned+=@keywords\[word\]
  8. end
  9. end
  10. returned
  11. end
  12. end
Add Comment
Please, Sign In to add comment