Module: BatchExperiment::FirstLineExtractor

Extended by:
Extractor
Defined in:
lib/batch_experiment/sample_extractors.rb

Class Method Summary collapse

Methods included from Extractor

extract, extract_from_lines, get_field, get_hfield, names

Class Method Details

.extract_from_lines(lines) ⇒ Object



10
11
12
13
14
15
# File 'lib/batch_experiment/sample_extractors.rb', line 10

def self.extract_from_lines(lines)
  [ (lines[0] or ''),
    Extractor.get_field(lines, 'ext_time'),
    Extractor.get_field(lines, 'ext_mem')
  ]
end

.namesObject



6
7
8
# File 'lib/batch_experiment/sample_extractors.rb', line 6

def self.names
  ['first line', 'ext_time', 'ext_mem']
end