Class: Talking::StreamVoice
- Inherits:
-
Struct
- Object
- Struct
- Talking::StreamVoice
- Defined in:
- lib/talking.rb
Overview
Public: Simple to-stream output voice. It prints stuff up to initialized IO.
Instance Attribute Summary collapse
-
#stream ⇒ Object
Returns the value of attribute stream.
Instance Method Summary collapse
Instance Attribute Details
#stream ⇒ Object
Returns the value of attribute stream
17 18 19 |
# File 'lib/talking.rb', line 17 def stream @stream end |
Instance Method Details
#puts(msg, *args) ⇒ Object
18 19 20 |
# File 'lib/talking.rb', line 18 def puts(msg, *args) stream.puts(format(msg, *args)) end |