]> git.donarmstrong.com Git - biopieces.git/commitdiff
added closed? method to filesys.rb
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 16 Mar 2012 09:51:01 +0000 (09:51 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 16 Mar 2012 09:51:01 +0000 (09:51 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1771 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/filesys.rb

index bed11f023d13506d84df3ec7ea1b81058612269d..2ee775760fa36faabcabcbac99f193bdbc4524dc 100644 (file)
@@ -74,6 +74,11 @@ class Filesys
     @io.close
   end
 
+  # Method to check if io is closed.
+  def closed?
+    @io.closed?
+  end
+
   # Iterator method for parsing entries.
   def each
     while entry = get_entry do