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

fix(ruby): stricter block params, allowing bitwise OR #4188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dysonreturns
Copy link

Block parenthesis, which are two pipe symbols are applicable after a do |param| or inside of an inline block { |param| ... }.

Resolves #4187

Changes

This change ensures the pipes |param| are preceded by an open bracket { or a do.
By being specific when these parenthesis occur, bitwise OR operations | don't read what follows as params indefinitely.

Checklist

  • Added markup tests, or they don't apply here because...
  • Updated the changelog at CHANGES.md

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.

(ruby) Bitwise OR pipe confused with Block Parenthesis pipes
1 participant