Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method · added in Ruby 3.2
Refinement#refined_class
refined_class → class
eval.c
View on GitHub ↗
static VALUE
rb_refinement_refined_class(VALUE module)
{
rb_warn_deprecated_to_remove("3.4", "Refinement#refined_class", "Refinement#target");
return rb_refinement_module_get_refined_class(module);
}
Deprecated; prefer target.
Return the class refined by the receiver.
Ruby version changes
-
3.3
-
Add
Refinement#targetas an alternative ofRefinement#refined_class.Refinement#refined_classis deprecated and will be removed in Ruby 3.4. [Feature #19714]
-
-
3.2
-
Refinement#refined_classhas been added. [Feature #12737]
-