cline 0.3.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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