Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

TracePoint#eval_script

() -> ::String?
eval_script

Returns the compiled source code (String) from eval methods on the :script_compiled event. If loaded from a file, it returns nil.

See also #enabled? #event #enable #inspect also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0