Skip to content

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

class method

RubyVM.keep_script_lines=

RubyVM.keep_script_lines = true / false

It set keep_script_lines flag. If the flag is set, all loaded scripts are recorded in a interpreter process.

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.4 · 3.2 · 3.1