Class: RSpecKneesAndToes::ProcessLinesBetweenLoggedSeeds
- Inherits:
-
Object
- Object
- RSpecKneesAndToes::ProcessLinesBetweenLoggedSeeds
- Defined in:
- lib/process_lines_between_logged_seeds.rb
Instance Attribute Summary collapse
-
#failing_seeds ⇒ Object
readonly
Returns the value of attribute failing_seeds.
Instance Method Summary collapse
-
#initialize ⇒ ProcessLinesBetweenLoggedSeeds
constructor
A new instance of ProcessLinesBetweenLoggedSeeds.
- #process_file(file_lines) ⇒ Object
Constructor Details
#initialize ⇒ ProcessLinesBetweenLoggedSeeds
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_seeds ⇒ Object (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 |