VK
Size: a a a
VK
DP
VK
DP
DP
[16] pry(main)> def a1( h )
[16] pry(main)* puts h
[16] pry(main)* end
=> :a1
[17] pry(main)> a1({ token: '123' })
{:token=>"123"}
DP
def test( **data = nil, content_type: 'application/json', charset: 'UTF-8' )
SyntaxError: unexpected ',', expecting end-of-input
...ntent_type: 'application/json', charset: 'UTF-8' )
VK
def test( **data = nil, content_type: 'application/json', charset: 'UTF-8' )
SyntaxError: unexpected ',', expecting end-of-input
...ntent_type: 'application/json', charset: 'UTF-8' )
VK
DP
= nil
или без = {}
то работает и так, как ожидалось.VK
VK
DP
DP
VK
VK
DP
RU
МВ
VK