]> git.donarmstrong.com Git - biopieces.git/commitdiff
add out accessor to Biopieces ruby code
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 31 Jan 2011 19:23:09 +0000 (19:23 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 31 Jan 2011 19:23:09 +0000 (19:23 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1232 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/Maasha/lib/biopieces.rb

index 02dc0f6ed3355527759bd89310ad70bf74181a28..44f0d22994b35199b9fc2cea07776cc1532c6627 100644 (file)
@@ -42,6 +42,8 @@ require 'pp'
 class Biopieces
   include Enumerable
 
+  attr_accessor :out # accessor for out stream _ios_
+
   # Initialize a Biopiece and write the status to file.
   # Options are for testing purposes only.
   def initialize(test=nil, input=STDIN, output=STDOUT)
@@ -97,6 +99,9 @@ class Biopieces
     @out.print "---\n"
   end
 
+  def to_s
+  end
+
   # Create a temporary directory inside the ENV["BP_TMP"] dir.
   def mktmpdir
     time = Time.now.to_i