Class: Puts
Instance Method Summary collapse
-
#initialize(stream = $stdout) ⇒ Puts
constructor
A new instance of Puts.
- #puts(str) ⇒ Object
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 |