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

instance method Prism::Source#lines

lines -> ArrayRuby 3.4 から[permalink][rdoc][edit]

ソースコードを行ごと(改行を含む)に分割した配列を返します。