Class: Negative::Negative

Inherits:
Item::Item show all
Defined in:
lib/negative.rb

Constant Summary collapse

@@list =
['disagree', "don't agree", 'do not agree', 'do not agree with the statement that']

Instance Method Summary collapse

Methods inherited from Item::Item

#because, #evidence, #inspect, #personally, #starting_to_s, #to_s

Constructor Details

#initialize(*args) ⇒ Negative

Returns a new instance of Negative.



22
23
24
25
# File 'lib/negative.rb', line 22

def initialize(*args)
  b = %i[however personally disagree because evidence]
  super(b, args)
end

Instance Method Details

#disagree(argument) ⇒ Object



29
30
31
# File 'lib/negative.rb', line 29

def disagree(argument)
  @sentiment = "#{@@list.sample}#{argument}"
end

#however(argument) ⇒ Object



27
# File 'lib/negative.rb', line 27

def however(argument); end