Skip to content

Conversation

@czan
Copy link
Contributor

@czan czan commented Nov 22, 2024

This allows Ruby's case/in syntax, like:

case input
in { x:, y: }
  # do something with x and y
end

This is easy for individual projects to add in their own InputObject superclass, but it seems generally useful, so I figured I'd raise a PR with it. No hard feelings if you don't want it upstream. 🙂

This allows Ruby's case/in syntax, like:

    case input
    in { x:, y: }
      # do something with x and y
    end
Copy link
Owner

@rmosolgo rmosolgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this improvement!

@rmosolgo rmosolgo added this to the 2.4.5 milestone Nov 22, 2024
@rmosolgo rmosolgo merged commit 692b58a into rmosolgo:master Nov 22, 2024
13 of 15 checks passed
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