🖥

#Ruby warning: The called method `xxx' is defined here ( Ruby 2.7 )

に公開

This warning tell you line troubled method

メソッド実行でwarningが出た時に、元のメソッドの行数を教えてくれているだけっぽい

def foo(x:, y:) # Troubled method
end

foo({x: "x", y: "y"}) # Troubled execute
example.rb:4: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
example.rb:1: warning: The called method `foo' is defined here

Original by Github issue

https://github.com/YumaInaura/YumaInaura/issues/3104

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2020-05-01

Discussion