class NHKore::ScrapeWordsResult
@author Jonathan Bradley Whited @since 0.2.0
Attributes
text[R]
words[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/nhkore/article_scraper.rb, line 643 def initialize super() @text = ''.dup @words = [] end
Public Instance Methods
add_text(text)
click to toggle source
# File lib/nhkore/article_scraper.rb, line 650 def add_text(text) @text << Util.reduce_jpn_space(text) return self end
add_word(word)
click to toggle source
# File lib/nhkore/article_scraper.rb, line 656 def add_word(word) @words << word return self end
polish!()
click to toggle source
# File lib/nhkore/article_scraper.rb, line 662 def polish! @text = Util.strip_web_str(@text) return self end
words?()
click to toggle source
# File lib/nhkore/article_scraper.rb, line 668 def words? return !@words.empty? end