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

Add character_literal? to StrNode #242

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

koic
Copy link
Member

@koic koic commented Oct 21, 2022

This PR adds character_literal? to StrNode.

...begin.is?('?') used in rubocop/rubocop#11095 and Style/CharacterLiteral can be rewritten by node.character_literal?.

This PR adds `character_literal?` to `StrNode`.

`...begin.is?('?')` used in rubocop/rubocop#11095
and `Style/CharacterLiteral` can be rewritten by `node.character_literal?`.
@marcandre marcandre merged commit a4d8eec into rubocop:master Oct 21, 2022
@marcandre
Copy link
Contributor

Good stuff, thank @koic
Released in v1.23.0

@koic koic deleted the add_character_literal_to_str_node branch October 21, 2022 15:37
@koic
Copy link
Member Author

koic commented Oct 21, 2022

Thank you @marcandre!

koic added a commit to rubocop/rubocop that referenced this pull request Oct 21, 2022
Follow up #11095 (comment)
and rubocop/rubocop-ast#242.

The API was introduced in rubocop-ast 1.23.0.
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