unimidi 0.1.2-i686-linux → 0.1.3-i686-linux
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.
- data/lib/unimidi/congruous_api_adapter.rb +9 -5
- data/lib/unimidi.rb +1 -1
- metadata +1 -1
@@ -17,11 +17,15 @@ module UniMIDI
|
|
17
17
|
|
18
18
|
# enable the device for use, can be passed a block to which the device will be passed back
|
19
19
|
def open(*a, &block)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
@device.open(*a)
|
21
|
+
unless block.nil?
|
22
|
+
begin
|
23
|
+
block.call(self)
|
24
|
+
ensure
|
25
|
+
close
|
26
|
+
end
|
27
|
+
else
|
28
|
+
self
|
25
29
|
end
|
26
30
|
end
|
27
31
|
|
data/lib/unimidi.rb
CHANGED