]> git.donarmstrong.com Git - biopieces.git/commitdiff
refactoring biopieces.rb
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 8 Jun 2012 09:14:16 +0000 (09:14 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 8 Jun 2012 09:14:16 +0000 (09:14 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1839 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/biopieces.rb

index 7a0c50e52fc1dadd0100008313fe822bf30f05fc..e994963b9e308f95236ae56b60aa2139dbed47f8 100644 (file)
@@ -79,18 +79,18 @@ class Biopieces
   # records. Records are read from STDIN (default) or file (possibly gzipped)
   # and written to STDOUT (default) or file.
   def self.open(input = STDIN, output = STDOUT)
-    input  = self.open_input(input)
-    output = self.open_output(output)
+    io_in  = self.open_input(input)
+    io_out = self.open_output(output)
 
     if block_given?
       begin
-        yield input, output
+        yield io_in, io_out
       ensure
-        input.close
-        output.close
+        io_in.close
+        io_out.close
       end
     else
-      return input, output
+      return io_in, io_out
     end
   end