Skip to content
This repository has been archived by the owner on Jan 17, 2018. It is now read-only.

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru committed Jan 19, 2012
1 parent 60fd246 commit 222261b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/stuff-classifier/tokenizer.rb
Expand Up @@ -37,8 +37,7 @@ def each_word(string)
w = w.downcase
end

yield w if block_given?
words << w
words << (block_given? ? (yield w) : w)
end
end

Expand Down

0 comments on commit 222261b

Please sign in to comment.