このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 3.2 リファレンスマニュアル

instance method Refinement#refined_class

refined_class -> ClassRuby 3.2 から Ruby 3.4 で削除[permalink][rdoc][edit]

selfModule#refine の対象にしているクラスを返します。

module M
  refine String do
  end
end

p M.refinements[0].refined_class # => String

[SEE_ALSO] Module#refinements, Module#refine