diff --git a/lib/mirimiri/document.rb b/lib/mirimiri/document.rb index bc16dd2..dc9d834 100644 --- a/lib/mirimiri/document.rb +++ b/lib/mirimiri/document.rb @@ -25,7 +25,7 @@ module Mirimiri # A Document is a bag of words and is constructed from a string. class Document - attr_reader :words, :doc_content + attr_reader :words, :doc_content, :count_words # Any non-word characters are removed from the words (see http://perldoc.perl.org/perlre.html # and the \\W special escape).