Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. 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 .mtbl .each_builtin .mtbl2 also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2