Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
NilClass#to_h
() -> { }
to_h → {}
object.c
View on GitHub ↗
static VALUE
nil_to_h(VALUE obj)
{
return rb_hash_new();
}