Skip to content

Files

Latest commit

 

History

History
34 lines (24 loc) · 443 Bytes

Lint-EndInMethod.md

File metadata and controls

34 lines (24 loc) · 443 Bytes

Pattern: Use of END in method definition

Issue: -

Description

This rule checks for END blocks in method definitions.

Examples

# bad

def some_method
  END { do_something }
end
# good

def some_method
  at_exit { do_something }
end
# good

# outside defs
END { do_something }

Further Reading