Class: Speaker
- Inherits:
-
Object
- Object
- Speaker
- Defined in:
- lib/neura-client/speaker_of_the_house.rb
Instance Method Summary collapse
Instance Method Details
#perform!(action) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/neura-client/speaker_of_the_house.rb', line 6 def perform!(action) if action.command == "speak" speak(*action.payload) else false end end |
#speak(message) ⇒ Object
2 3 4 |
# File 'lib/neura-client/speaker_of_the_house.rb', line 2 def speak() `say "#{}"` end |