Class: Talking::Mouth
- Inherits:
-
Struct
- Object
- Struct
- Talking::Mouth
- Defined in:
- lib/talking.rb
Overview
Public: Your program should use mouth to speak stuff. Give him this ones.
Instance Attribute Summary collapse
-
#debug_voice ⇒ Object
Returns the value of attribute debug_voice.
-
#natural_voice ⇒ Object
Returns the value of attribute natural_voice.
Instance Method Summary collapse
-
#debug(msg, *args) ⇒ Object
Public: Debug information print.
-
#say(msg, *args) ⇒ Object
Public: Says simple stuff with formatted parameters.
Instance Attribute Details
#debug_voice ⇒ Object
Returns the value of attribute debug_voice
24 25 26 |
# File 'lib/talking.rb', line 24 def debug_voice @debug_voice end |
#natural_voice ⇒ Object
Returns the value of attribute natural_voice
24 25 26 |
# File 'lib/talking.rb', line 24 def natural_voice @natural_voice end |
Instance Method Details
#debug(msg, *args) ⇒ Object
Public: Debug information print. Uses secondary, debug voice output.
31 32 33 |
# File 'lib/talking.rb', line 31 def debug(msg, *args) debug_voice.puts("DEBUG: #{msg}", *args) end |
#say(msg, *args) ⇒ Object
Public: Says simple stuff with formatted parameters.
26 27 28 |
# File 'lib/talking.rb', line 26 def say(msg, *args) natural_voice.puts(msg, *args) end |