Class: Cline::NotifyIO::WithNotify

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

Instance Method Summary collapse

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