From: gabriele renzi Date: 2004-04-21T04:04:07+09:00 Subject: Re: Ruby2: keyword argument il Wed, 21 Apr 2004 00:34:14 +0900, David Garamond ha scritto:: >Will Ruby2 support required keyword argument? AFAIR, Python doesn't: > > def foo(a, b=2): > ... > > foo(a=1) # ok > foo(a=1, b=2) # ok python does and so will ruby2. See matz slide from latest rubyconf for other info. basically, you'll write method(name: value) where name:value is the new hash literal for :name => value