Ruby 4.0 リファレンスマニュアル

instance method Prism::Source#line_end

line_end(byte_offset) -> IntegerRuby 3.4 から[permalink][rdoc][edit]

byte_offset の位置がある行の終端のバイトオフセット(次の行の行頭と同じ位置)を返します。

[PARAM] byte_offset:
バイトオフセット