Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Ripper#lineno

ripper.lineno → Integer

Return line number of current parsing line. This number starts from 1.

See also #filename #parse #error? #state also in 3.2 · 3.1