Class: Talking::StreamVoice

Inherits:
Struct
  • Object
show all
Defined in:
lib/talking.rb

Overview

Public: Simple to-stream output voice. It prints stuff up to initialized IO.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#streamObject

Returns the value of attribute stream

Returns:

  • (Object)

    the current value of 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