octave-ruby 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/lib/octave/engine.rb +8 -0
- data/lib/octave/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/lib/octave/engine.rb
CHANGED
@@ -18,6 +18,14 @@ module Octave
|
|
18
18
|
# Create a new Engine object that connects to Octave
|
19
19
|
def initialize(options = {})
|
20
20
|
load_driver(options[:driver])
|
21
|
+
|
22
|
+
if block_given?
|
23
|
+
begin
|
24
|
+
yield self
|
25
|
+
ensure
|
26
|
+
close
|
27
|
+
end
|
28
|
+
end
|
21
29
|
end
|
22
30
|
|
23
31
|
# Put a variable in to Octave with the given name
|
data/lib/octave/version.rb
CHANGED