Fix RuboCop offenses introduced in version 0.19.0
Remove unnecessary double negation
Use nested module/class definitions instead of compact style
Remove redundant to_s in interpolation