Ruby

Ruby

Made by DeepSource

Literal used in interpolation RB-LI1032

Anti-pattern
Major
Autofix

Literals used in interpolations are pointless, and can be replaced by the literal directly.

Bad practice

s = "The name's #{ 'Bond' }"

Recommended

s = "The name's Bond"