Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::Translation::Ripper#trailing_comma?
trailing_comma?(left, right)
lib/prism/translation/ripper.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/translation/ripper.rb, line 3280
def trailing_comma?(left, right)
source.byteslice(left.end_offset...right.start_offset).include?(",")
end
Returns true if there is a comma between the two locations.