From: martinahansen Date: Mon, 31 Jan 2011 19:23:09 +0000 (+0000) Subject: add out accessor to Biopieces ruby code X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=65d706fb035b48393465374241b06ecaae8fa985;p=biopieces.git add out accessor to Biopieces ruby code git-svn-id: http://biopieces.googlecode.com/svn/trunk@1232 74ccb610-7750-0410-82ae-013aeee3265d --- 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