End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
RubyVM::AbstractSyntaxTree::Node#script_lines
node.script_lines → array
ast.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/ast.rb, line 248
def script_lines
Primitive.ast_node_script_lines
end
Returns the original source code as an array of lines.
Note that this is an API for ruby internal use, debugging, and research. Do not use this for any other purpose. The compatibility is not guaranteed.