Skip to content

Files

Latest commit

 

History

History
24 lines (15 loc) · 381 Bytes

Style-RedundantInterpolation.md

File metadata and controls

24 lines (15 loc) · 381 Bytes

Pattern: Redundant string interpolation

Issue: -

Description

This rule checks for strings that are just an interpolated expression.

Examples

# bad
"#{@var}"

# good
@var.to_s

# good if @var is already a String
@var

Further Reading