Commit e267264ee3ad0c7da4ba23002e40af1f072ab0c4
1 parent
8f90ef69c4
Exists in
master
count_words is now a proper attribute
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/mirimiri/document.rb
| ... | ... | @@ -25,7 +25,7 @@ |
| 25 | 25 | |
| 26 | 26 | # A Document is a bag of words and is constructed from a string. |
| 27 | 27 | class Document |
| 28 | - attr_reader :words, :doc_content | |
| 28 | + attr_reader :words, :doc_content, :count_words | |
| 29 | 29 | |
| 30 | 30 | # Any non-word characters are removed from the words (see http://perldoc.perl.org/perlre.html |
| 31 | 31 | # and the \\W special escape). |