Sha256: 7f6268c22594c8224500e1617dda73f7a6cb4e36b41973eea80acdabe59adbc9

Contents?: true

Size: 748 Bytes

Versions: 2

Compression:

Stored size: 748 Bytes

Contents

require 'text-data-tools'

class CodeRunner
  class Trinity
    #  this module provides easy access to the Trinity  textbased output data
    #  by defining a TextDataFile  for every text  output file. See the documentation
    #  for TextDataTools  for more information.
    module OutputFiles
      def info_outfile
        TextDataTools::Named::DataFile.new(@directory + '/' + @run_name + '.info', ':')
      end
      def nt_outfile
        TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.nt', true, /\S+/, /(?:\#\s+)?\d:.*?(?=\d:)/)
      end
      def time_outfile
        TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.time', true, /\S+/, /\w+/)
      end
    end
    include OutputFiles
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trinitycrmod-0.2.1 lib/trinitycrmod/output_files.rb
trinitycrmod-0.2.0 lib/trinitycrmod/output_files.rb