class TextSearch::Text

Public Class Methods

new(text, words=[]) click to toggle source
# File lib/text_search/text.rb, line 5
def initialize(text, words=[])
        @text = text
        @words = words
end

Public Instance Methods

words() click to toggle source
# File lib/text_search/text.rb, line 14
def words
        TextSearch::Base.words(@text.downcase)
end