Skip to content

Files

Latest commit

 

History

History
24 lines (16 loc) · 466 Bytes

Lint-LambdaWithoutLiteralBlock.md

File metadata and controls

24 lines (16 loc) · 466 Bytes

Pattern: Lambda without literal block

Issue: -

Description

This rule checks uses of lambda without a literal block.

Examples

# bad
lambda(&proc { do_something })
lambda(&Proc.new { do_something })

# good
proc { do_something }
Proc.new { do_something }
lambda { do_something } # If you use lambda.

Further Reading