We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is not allowed right now, but alias_method is no alternative for alias in instance_exec:
alias_method
alias
instance_exec
cli.instance_exec do alias :old_trap_interrupt :trap_interrupt end
The text was updated successfully, but these errors were encountered:
Yep, I'm aware of that. alias is also required if you want to alias a global variable. We'll have to improve that cop for sure.
Sorry, something went wrong.
@jurriaan You can still use cli.singleton_class.class_exec, though (and it will have the same effect, I believe).
I've added a check for global variables. At some point I'll revisit this, but it's fairly low on my todo list.
a328d1a
👍
No branches or pull requests
This is not allowed right now, but
alias_method
is no alternative foralias
ininstance_exec
:The text was updated successfully, but these errors were encountered: