class method
ENV.dup
ENV.dup # raises TypeError
hash.c
View on GitHub ↗
static VALUE
env_dup(VALUE obj)
{
rb_raise(rb_eTypeError, "Cannot dup ENV, use ENV.to_h to get a copy of ENV as a hash");
}