class Rundown::Processors::Sentiment

Attributes

parser[RW]

Public Class Methods

new(words, parser=SentimentParser) click to toggle source
Calls superclass method Rundown::Processor::new
# File lib/rundown/processors/sentiment.rb, line 6
def initialize(words, parser=SentimentParser)
  @parser = parser
  super(words)
end

Public Instance Methods

process() click to toggle source
# File lib/rundown/processors/sentiment.rb, line 11
def process
  parser.parse(words.join(' '))
end