File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1346,9 +1346,19 @@ rb_using_module(const rb_cref_t *cref, VALUE module)
1346
1346
1347
1347
/*
1348
1348
* call-seq:
1349
- * target -> class
1349
+ * target -> class_or_module
1350
1350
*
1351
1351
* Return the class or module refined by the receiver.
1352
+ *
1353
+ * module M
1354
+ * refine String do
1355
+ * def indent(level)
1356
+ * ' ' * level + self
1357
+ * end
1358
+ * end
1359
+ * end
1360
+ *
1361
+ * M.refinements[0].target # => String
1352
1362
*/
1353
1363
VALUE
1354
1364
rb_refinement_module_get_refined_class (VALUE module )
@@ -1363,6 +1373,8 @@ rb_refinement_module_get_refined_class(VALUE module)
1363
1373
* call-seq:
1364
1374
* refined_class -> class
1365
1375
*
1376
+ * Deprecated; prefer #target.
1377
+ *
1366
1378
* Return the class refined by the receiver.
1367
1379
*/
1368
1380
static VALUE
You can’t perform that action at this time.
0 commit comments