Class: RSpecKneesAndToes::ProcessLinesBetweenLoggedSeeds

Inherits:
Object
  • Object
show all
Defined in:
lib/process_lines_between_logged_seeds.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProcessLinesBetweenLoggedSeeds

Returns a new instance of ProcessLinesBetweenLoggedSeeds.



7
8
9
# File 'lib/process_lines_between_logged_seeds.rb', line 7

def initialize
  @current_seed = nil
end

Instance Attribute Details

#failing_seedsObject (readonly)

Returns the value of attribute failing_seeds.



5
6
7
# File 'lib/process_lines_between_logged_seeds.rb', line 5

def failing_seeds
  @failing_seeds
end

Instance Method Details

#process_file(file_lines) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/process_lines_between_logged_seeds.rb', line 11

def process_file(file_lines)
  reset

  file_lines.each do |line|
    process_log_line(line) do |seed|
      yield line, seed if seed
    end
  end
end