Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment