Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
SyntaxSuggest::ScanHistory#commit_if_changed
commit_if_changed
lib/syntax_suggest/scan_history.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/syntax_suggest/scan_history.rb, line 30
def commit_if_changed
if changed?
@history << CodeBlock.new(lines: @code_lines[before_index..after_index])
end
self
end
No documentation available