Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 365 Bytes

Style-MinMax.md

File metadata and controls

23 lines (15 loc) · 365 Bytes

Pattern: Missing use of Enumerable#minmax

Issue: -

Description

This rule checks for potential uses of Enumerable#minmax.

Examples

# bad
bar = [foo.min, foo.max]
return foo.min, foo.max

# good
bar = foo.minmax
return foo.minmax

Further Reading