2022-10-01から1ヶ月間の記事一覧
はじめに RuboCop 実行時に以下のメッセージが出力されました。 sample.rb:15:6: C: [Correctable] Style/SafeNavigation: Use safe navigation (&.) instead of checking if an object exists before calling the method. if sample && sample.hello サンプ…
はじめに RuboCop 実行時に以下のメッセージが出力されました。 sample.rb:15:6: C: [Correctable] Style/SafeNavigation: Use safe navigation (&.) instead of checking if an object exists before calling the method. if sample && sample.hello サンプ…