Skip to content

Files

Latest commit

 

History

History
20 lines (13 loc) · 331 Bytes

Rails-ToSWithArgument.md

File metadata and controls

20 lines (13 loc) · 331 Bytes

Pattern: Passing argument to #to_s

Issue: -

Description

Identifies passing any argument to #to_s.

Examples

# bad
obj.to_s(:delimited)

# good
obj.to_formatted_s(:delimited)

Further Reading