Fix Ruby compile time warnings

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

According to this script which runs ruby -wc (Ruby 2.6.5p114 (2019-10-01 revision 67812)) on the code base we have a couple of warnings which we can easily get rid of.

This issue tracks the progress.

Ideally, we should try to utilize RuboCop's 👮 rules to fix these warnings permanently.

Fixes

Ignored warnings

Currently, this script ignores the following warnings:

Edited by 🤖 GitLab Bot 🤖