Class: Neutral::Neutral

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

Constant Summary collapse

@@list =
['I think we can all agree', 'Everyone knows', 'Everybody knows', 'We all know']

Instance Method Summary collapse

Methods inherited from Item::Item

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

Constructor Details

#initialize(*args) ⇒ Neutral

Returns a new instance of Neutral.



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

def initialize(*args)
  super(%i[nop nop nop state nop], args)
end

Instance Method Details

#nop(_argument) ⇒ Object



27
28
29
# File 'lib/neutral.rb', line 27

def nop(_argument)
  ''
end

#state(argument) ⇒ Object



31
32
33
# File 'lib/neutral.rb', line 31

def state(argument)
  @sentiment = @@list.sample + argument
end