Takashi Kokubun fce0a26bca [ruby/erb] Prohibit def_method on marshal-loaded ERB instances
Extends the @_init guard to def_method so that an ERB object created
via Marshal.load (which bypasses initialize) raises ArgumentError
instead of evaluating arbitrary source. def_module and def_class both
delegate to def_method and are covered by the same check.

Co-authored-by: Tristan Madani <TristanInSec@gmail.com>
2026-04-21 17:16:04 +09:00
..
2026-03-06 09:02:23 -08:00
2026-02-09 17:38:24 -08:00
2026-03-09 08:19:27 -07:00