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

[RB] Shared variable from/to class/instance side #17298

Open
Gabriel-Darbord opened this issue Oct 18, 2024 · 0 comments
Open

[RB] Shared variable from/to class/instance side #17298

Gabriel-Darbord opened this issue Oct 18, 2024 · 0 comments

Comments

@Gabriel-Darbord
Copy link
Contributor

I would like to have a refactoring to move a shared variable to the class or instance side, or vice versa.

Shared variables are named with a title case (first letter is uppercase), and they can be used throughout a class hierarchy.
If we want to make it a class or instance variable, we need to both move the declaration and rename the variable.

It would be equivalent to renaming the variable first, then moving the declaration.
However, the refactoring engine refuses to rename the variable with a case that is not appropriate for where the variable currently resides.

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

No branches or pull requests

1 participant