cline 0.3.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,34 +0,0 @@
1
- # coding: utf-8
2
-
3
- require 'notify'
4
-
5
- module Cline::OutStreams
6
- def self.const_missing(name)
7
- case name
8
- when :WithGrowl
9
- WithNotify
10
- else
11
- super
12
- end
13
- end
14
-
15
- class WithNotify
16
- attr_reader:stream
17
-
18
- def initialize(stream = $stdout)
19
- @stream = stream
20
- end
21
-
22
- def puts(str)
23
- puts_stream str
24
-
25
- Notify.notify '', str
26
- end
27
-
28
- private
29
-
30
- def puts_stream(str)
31
- stream.puts str
32
- end
33
- end
34
- end