instance method
RubyVM::AbstractSyntaxTree::Node#script_lines
node.script_lines → array
ast.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ast.rb, line 247
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.