Scans up/down from the given block

You can try out a change, stash it, or commit it to save for later

Example:

scanner = ScanHistory.new(code_lines: code_lines, block: block)
scanner.scan(
  up: ->(_, _, _) { true },
  down: ->(_, _, _) { true }
)
scanner.changed? # => true
expect(scanner.lines).to eq(code_lines)

scanner.stash_changes

expect(scanner.lines).to_not eq(code_lines)
Attributes
No documentation available
No documentation available
Class Methods
No documentation available
Instance Methods

Returns an array of all the CodeLines that exist after the currently scanned block

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Discard changes that have not been committed and revert the last commit

Cannot revert the first commit

Iterates up and down

Returns line, kw_count, end_count for each iteration

Discards any changes that have not been committed