Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Module#public_constant
mod.public_constant(symbol, ...) => mod
object.c
View on GitHub ↗
VALUE
rb_mod_public_constant(int argc, const VALUE *argv, VALUE obj)
{
set_const_visibility(obj, argc, argv, CONST_PUBLIC, CONST_VISIBILITY_MASK);
return obj;
}
Makes a list of existing constants public.
See also
#public_class_method
#public_instance_method
#public
#public_instance_methods
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0