Skip to content
On this page

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.3

SyntaxSuggest::ScanHistory

< Object 12 instance methods 1 class methods

Scans up/down from the given block

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

Example:

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)

Class methods 1

Instance methods 12

Attributes
No documentation available
No documentation available