Class: Printer

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

Class Method Summary collapse

Class Method Details

.puts(str = "") ⇒ Object



84
85
86
87
88
# File 'lib/room.rb', line 84

def puts(str = "")
  lines = str.split("\n", -1)
  lines << "" if lines.length == 0
  lines.each { |line| sleep 0.05; $stdout.puts line }
end