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
search()
click to toggle source
# File lib/text_search/text.rb, line 10 def search TextSearch::Base.counter(@text.downcase, @words) end
words()
click to toggle source
# File lib/text_search/text.rb, line 14 def words TextSearch::Base.words(@text.downcase) end