Class: Puts

Inherits:
Object show all
Defined in:
lib/druby_reci.rb

Instance Method Summary collapse

Constructor Details

#initialize(stream = $stdout) ⇒ Puts

Returns a new instance of Puts.



8
9
10
# File 'lib/druby_reci.rb', line 8

def initialize(stream=$stdout)
 @stream = stream
end

Instance Method Details

#puts(str) ⇒ Object



12
13
14
# File 'lib/druby_reci.rb', line 12

def puts(str)
 @stream.puts(str)
end