spec
spec copied to clipboard
Add specs using keywords as implicit Hash values
This documents behaviour like:
def do_something(if:)
# Behaves like `binding.local_variable_get(:if)`, but faster.
condition = { if: }[:if]
end