Class: Yharian::Jenifer

Inherits:
Speaker show all
Defined in:
lib/plugins/yhara.rb

Constant Summary collapse

ARABIAN =
%w[ايران نيست]

Instance Attribute Summary

Attributes inherited from Speaker

#name

Instance Method Summary collapse

Constructor Details

#initializeJenifer

Returns a new instance of Jenifer.



64
65
66
# File 'lib/plugins/yhara.rb', line 64

def initialize
  super 'jenifer'
end

Instance Method Details

#talk(context) ⇒ Object



68
69
70
71
# File 'lib/plugins/yhara.rb', line 68

def talk(context)
  words = (0..rand(3)). map { ARABIAN.choice }.join(' ')
  [Remark.new(self,words, '')]
end

#voice(context = nil) ⇒ Object



73
74
75
# File 'lib/plugins/yhara.rb', line 73

def voice(context = nil)
  'Princess'
end