Class: Sh::Log::Broadcaster
Instance Method Summary collapse
-
#initialize(type) ⇒ Broadcaster
constructor
A new instance of Broadcaster.
- #puts(str) ⇒ Object
- #write(str) ⇒ Object
Constructor Details
#initialize(type) ⇒ Broadcaster
Returns a new instance of Broadcaster.
4 5 6 |
# File 'lib/sh_log.rb', line 4 def initialize type @type = type end |
Instance Method Details
#puts(str) ⇒ Object
22 23 24 |
# File 'lib/sh_log.rb', line 22 def puts str write str + "\n" end |