From 65d706fb035b48393465374241b06ecaae8fa985 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Mon, 31 Jan 2011 19:23:09 +0000 Subject: [PATCH] add out accessor to Biopieces ruby code git-svn-id: http://biopieces.googlecode.com/svn/trunk@1232 74ccb610-7750-0410-82ae-013aeee3265d --- code_ruby/Maasha/lib/biopieces.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code_ruby/Maasha/lib/biopieces.rb b/code_ruby/Maasha/lib/biopieces.rb index 02dc0f6..44f0d22 100644 --- a/code_ruby/Maasha/lib/biopieces.rb +++ b/code_ruby/Maasha/lib/biopieces.rb @@ -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 -- 2.39.5