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

instance method Prism::Source#line_start

line_start(byte_offset) -> IntegerRuby 3.3 から[permalink][rdoc][edit]

byte_offset の位置がある行の、行頭のバイトオフセットを返します。

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