Skip to content
instance method

RubyVM::AbstractSyntaxTree::Node#script_lines

node.script_lines → array

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.

See also #node_id #source #locations #tokens also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1