Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

RubyVM.keep_script_lines

RubyVM.keep_script_lines → true or false

Return current keep_script_lines status. Now it only returns true of false, but it can return other objects in future.

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 .keep_script_lines= .stat also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1