8000 [DOC] Adjust some new features wording/examples. by zverok · Pull Request #9183 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

[DOC] Adjust some new features wording/examples. #9183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adjust Refinement#target docs
  • Loading branch information
zverok committed Dec 14, 2023
commit 3af3e18a6d265238508fb8c415dd8e38beda282d
11 changes: 10 additions & 1 deletion eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1346,9 +1346,16 @@ rb_using_module(const rb_cref_t *cref, VALUE module)

/*
* call-seq:
* target -> class
* target -> class_or_module
*
* Return the class or module refined by the receiver.
*
* module M
* refine String do
* end
* end
*
* M.refinements[0].target # => String
*/
VALUE
rb_refinement_module_get_refined_class(VALUE module)
Expand All @@ -1363,6 +1370,8 @@ rb_refinement_module_get_refined_class(VALUE module)
* call-seq:
* refined_class -> class
*
* Deprecated; prefer #target.
*
* Return the class refined by the receiver.
*/
static VALUE
Expand Down
0