Skip to content
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

Module#class_evalで、定数/クラス変数のスコープについての説明を強化 #2915

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

kyanagi
Copy link
Contributor

@kyanagi kyanagi commented Nov 4, 2024

Module#class_eval は、文字列を渡した場合とブロックを渡した場合でスコープに関する挙動が異なるので、
この部分について例を追加して解説を補強しました。

@kyanagi kyanagi force-pushed the class_eval_constant_scope branch from 932e796 to 5117eda Compare November 4, 2024 01:36
@ohai ohai merged commit 551b912 into rurema:master Nov 17, 2024
9 checks passed
@ohai
Copy link
Member

ohai commented Nov 17, 2024

特に問題なさそうなのでmergeしました。PRありがとうございます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants