From: nagachika00@... Date: 2014-05-18T15:37:49+00:00 Subject: [ruby-core:62662] [ruby-trunk - Bug #9669] Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses. Issue #9669 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: DONTNEED, 2.1: REQUIRED to 2.0.0: DONTNEED, 2.1: DONE r45405 and r45408 were backported into `ruby_2_1` branch at r46005. ---------------------------------------- Bug #9669: Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses. https://bugs.ruby-lang.org/issues/9669#change-46797 * Author: Teja Sophista * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1.1 * Backport: 2.0.0: DONTNEED, 2.1: DONE ---------------------------------------- Ruby allowed us to define method with arguments without parentheses. ~~~ def foo a:, b: 'bar' end #=> :foo def foo a:, b: puts 'bar' end #=> syntax error ~~~ -- https://bugs.ruby-lang.org/