Module: Kernel
- Defined in:
- lib/forever/extensions.rb
Instance Method Summary collapse
- #puts(text = "") ⇒ Object (also: #log)
Instance Method Details
#puts(text = "") ⇒ Object Also known as: log
19 20 21 22 23 24 |
# File 'lib/forever/extensions.rb', line 19 def puts(text="") text = LOG_FORMAT % [Time.now.strftime(DATE_FORMAT), text.to_s] text += "\n" unless text[-1] == ?\n print text; $stdout.flush text end |