On this page
Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.3
SyntaxSuggest::ScanHistory
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
Read
No documentation available
Read
No documentation available