Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
RubyVM::AbstractSyntaxTree::Location#last_lineno
() -> ::Integer
location.last_lineno → integer
ast.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/ast.rb, line 312
def last_lineno
Primitive.ast_location_last_lineno
end
The line number in the source code where this AST’s text ended.