unimidi 0.1.2-i686-linux → 0.1.3-i686-linux
Sign up to get free protection for your applications and to get access to all the features.
- 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