Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 724 Bytes

Style-ModuleFunction.md

File metadata and controls

35 lines (25 loc) · 724 Bytes

Pattern: Use of extend self or module_function

Issue: -

Description

This rule checks for use of extend self or module_function in a module.

Examples

# Good if EnforcedStyle is module_function
module Test
  module_function
  ...
end

# Good if EnforcedStyle is extend_self
module Test
  extend self
  ...
end

Default configuration

Attribute Value
EnforcedStyle module_function
SupportedStyles module_function, extend_self

Further Reading