Class: Yharian::Jenifer
Constant Summary collapse
- ARABIAN =
%w[ايران نيست]
Instance Attribute Summary
Attributes inherited from Speaker
Instance Method Summary collapse
-
#initialize ⇒ Jenifer
constructor
A new instance of Jenifer.
- #talk(context) ⇒ Object
- #voice(context = nil) ⇒ Object
Constructor Details
#initialize ⇒ Jenifer
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 |