Class: Cline::NotifyIO::WithNotify
- Inherits:
-
Object
- Object
- Cline::NotifyIO::WithNotify
- Defined in:
- lib/cline/notify_io.rb
Instance Method Summary collapse
-
#initialize(io = $stdout) ⇒ WithNotify
constructor
A new instance of WithNotify.
- #puts(str) ⇒ Object
Constructor Details
#initialize(io = $stdout) ⇒ WithNotify
Returns a new instance of WithNotify.
8 9 10 |
# File 'lib/cline/notify_io.rb', line 8 def initialize(io = $stdout) @io = io end |
Instance Method Details
#puts(str) ⇒ Object
12 13 14 15 16 |
# File 'lib/cline/notify_io.rb', line 12 def puts(str) @io.puts str Notify.notify 'cline', str end |