instance method
SyntaxSuggest::ScanHistory#commit_if_changed
commit_if_changed
lib/syntax_suggest/scan_history.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.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