Skip to content

Add specs using keywords as implicit Hash values#1189

Draft
amomchilov wants to merge 4 commits into
ruby:masterfrom
amomchilov:hash-keyword-keys
Draft

Add specs using keywords as implicit Hash values#1189
amomchilov wants to merge 4 commits into
ruby:masterfrom
amomchilov:hash-keyword-keys

Conversation

@amomchilov

Copy link
Copy Markdown
Contributor

This documents behaviour like:

def do_something(if:)
  # Behaves like `binding.local_variable_get(:if)`, but faster.
  condition = { if: }[:if]
end
@eregon

eregon commented Jan 4, 2026

Copy link
Copy Markdown
Member

It sounds good to spec that indeed, could you rebase? (since #1187 is merged now)

@amomchilov

Copy link
Copy Markdown
Contributor Author

will-do when i have some free time

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

Labels

None yet

2 participants