Project

General

Profile

Bug #17179

Updated by bestwebua (Vladislav Trotsenko) about 4 years ago

```ruby 
 some_instance = Class.new { def some_setter=(a:, b:); end }.new 
 setter_params = { a: 1, b: 2 } 
 some_instance.some_setter = setter_params # => {:a=>1, :b=>2} 

 # warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call 
 # warning: The called method `some_setter=' is defined here 

 some_instance.public_send(:some_setter=, **setter_params) # => nil 
 # No warninigs, everything is ok 
 ``` 
 If this behavior is okay, okay probably need to add ability to use double splat operator with syntax sugar like in example below: 
 ```ruby 
 some_instance.some_setter = **setter_params 
 ```

Back