ruby / spec

The Ruby Spec Suite aka ruby/spec
MIT License
600 stars 388 forks source link

Add specs using keywords as implicit Hash values #1189

Open amomchilov opened 3 months ago

amomchilov commented 3 months ago

This documents behaviour like:

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