lib/transrate/assembly.rb
# Generate and store the basic statistics for this assembly
#
# @param threads [Integer] number of threads to use
Generate and store the basic statistics for this assembly
Generate and store the basic statistics for this assembly
def run threads=8
      stats = self.basic_stats threads
      stats.each_pair do |key, value|
        ivar = "@#{key.gsub(/\ /, '_')}".to_sym
        attr_ivar = "#{key.gsub(/\ /, '_')}".to_sym
        singleton_class.class_eval { attr_accessor attr_ivar }
        self.instance_variable_set(ivar, value)
      end
      @has_run = true
    end
def run threads = 8 stats = self . basic_stats threads stats . each_pair do | key , value | ivar = "@#{key.gsub(/\ /, '_')}" . to_sym attr_ivar = "#{key.gsub(/\ /, '_')}" . to_sym singleton_class . class_eval { attr_accessor attr_ivar } self . instance_variable_set ( ivar , value ) end @has_run = true end
Generate and store the basic statistics for this assembly
Generate and store the basic statistics for this assembly
# creates accessors for the variables in stats
threads
number of threads to use
number of threads to use